Page 1 of 1

Error on trying to scripts (even the example ones)

Posted: Thu Sep 11, 2008 9:38 am
by Peeter
Exception System.Security.SecurityException was thrown in debuggee:
That assembly does not allow partially trusted callers.

Any suggestions on what I should configure?

Posted: Thu Sep 11, 2008 10:18 am
by Support Team
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

Posted: Thu Sep 11, 2008 10:27 am
by Peeter
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).

Posted: Fri Sep 12, 2008 8:35 am
by Support Team
Please post the complete exception error message + stack trace and describe where exactly the problem occurs (console / windows application, etc.)

Michael
Ranorex Team

Posted: Mon Sep 15, 2008 7:13 am
by Peeter
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.

Posted: Mon Sep 15, 2008 9:07 am
by Support Team
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

Posted: Thu Sep 18, 2008 6:54 am
by Peeter
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.

Posted: Fri Sep 19, 2008 8:37 am
by Support Team
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