Page 1 of 1

Metro App - Unhandled exception in ranorex

Posted: Tue May 07, 2013 8:15 am
by LogeshR
Hi,

I have automated my metro application using Ranorex. Then I have opened the same solution in Visual Studio 2012. When running the application from VS I am getting 'RanorexException was unhandled' error.
It gives the message 'The executable needs to be restarted with UI access rights. In order to debug the process, please run your IDE as administrator.' I tried disabling UAC in my machine but my application is not working when disable it.

Kindly help me to get around this.

Thanks
Logesh.

Re: Metro App - Unhandled exception in ranorex

Posted: Tue May 07, 2013 2:31 pm
by Support Team
Hi,

Do you have also tried to start VS as administrator?

Regards,
Markus

Re: Metro App - Unhandled exception in ranorex

Posted: Wed May 08, 2013 7:30 am
by LogeshR
Thanks Markus for your reply.
Yes, I tried starting the VS & Ranorex studio as administrator but no luck and still getting the same error.

Thanks.

Re: Metro App - Unhandled exception in ranorex

Posted: Fri May 10, 2013 5:03 pm
by Support Team
Hello,

This seems to be an issue with the privileges. If you start the test with Ranorex Studio it is possible to enable the setting 'Use UiaLauncher to elevate privileges for processes started by tools'. You can also execute the test using the command line.
Please read the section "Windows Apps (aka Windows 8 UI Apps)" on our user guide in order to get additional information how to use the UIALauncher.

Regards,
Bernhard