Error on trying to scripts (even the example ones)

Bug reports.
Peeter
Posts: 4
Joined: Thu Sep 11, 2008 9:37 am

Error on trying to scripts (even the example ones)

Post by Peeter » Thu Sep 11, 2008 9:38 am

Exception System.Security.SecurityException was thrown in debuggee:
That assembly does not allow partially trusted callers.

Any suggestions on what I should configure?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Thu Sep 11, 2008 10:18 am

Could it be that you try to run Ranorex from a network share? Please be sure that the Ranorex DLLs and all executables are not lying on a network share.

Regards,
Alex
Ranorex Support Team

Peeter
Posts: 4
Joined: Thu Sep 11, 2008 9:37 am

Post by Peeter » Thu Sep 11, 2008 10:27 am

Support Team wrote:Could it be that you try to run Ranorex from a network share? Please be sure that the Ranorex DLLs and all executables are not lying on a network share.

Regards,
Alex
Ranorex Support Team
It's installed on my local disk (not networks share).

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Fri Sep 12, 2008 8:35 am

Please post the complete exception error message + stack trace and describe where exactly the problem occurs (console / windows application, etc.)

Michael
Ranorex Team

Peeter
Posts: 4
Joined: Thu Sep 11, 2008 9:37 am

Post by Peeter » Mon Sep 15, 2008 7:13 am

I open the calculator sample, compile it (without errors) and when I try to run it I get:

Exception System.Security.SecurityException was thrown in debuggee:
That assembly does not allow partially trusted callers.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Mon Sep 15, 2008 9:07 am

Ranorex assemblies need full trust when executed. It seems as if your compiled assembly is executed from a place that does not have full trust.

Ranorex Studio projects are usually placed in the "My Documents" folder in your "Documents and Settings" profile. Could it be that your "My Documents" folder is on a network share or that this folder has been set to minor trust?

You can adjust the .NET trust settings via the Windows Control Panel. Open the Control Panel -> Administrative Tools -> Microsoft .NET Framework 2.0 Configuration. It the opened window select: My Computer -> Runtime Security Policy -> Adjust Zone Security. There you can adjust the security zones for your computer/user profile.

Regards,
Alex
Ranorex Support Team

Peeter
Posts: 4
Joined: Thu Sep 11, 2008 9:37 am

Post by Peeter » Thu Sep 18, 2008 6:54 am

Hello,

I'm sorry, you were right - the scripts were saved on a network share disk. I've got it running now, but it appears that Ranorex does not support Janus components. Any chance there will be an update on this feature in the foreseeable future?

Peeter.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Fri Sep 19, 2008 8:37 am

We downloaded the Janus components trial and inspected them for automation compatibility. Unfortunately, none of the Janus controls support MS Accessibility (i.e. Ranorex elements), so they are not designed for automation.

You can, however, use control methods and the Control.Get/SetAttributeValue or Control.InvokeMethod to get information on these .NET controls. The Ranorex Recorder will use positions relative to the control bounds to click on elements inside a control.

Regards,
Alex
Ranorex Support Team