Metro App - Unhandled exception in ranorex

Ask general questions here.
LogeshR
Posts: 2
Joined: Fri Apr 12, 2013 11:35 am

Metro App - Unhandled exception in ranorex

Post by LogeshR » Tue May 07, 2013 8:15 am

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.

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

Re: Metro App - Unhandled exception in ranorex

Post by Support Team » Tue May 07, 2013 2:31 pm

Hi,

Do you have also tried to start VS as administrator?

Regards,
Markus
.
Image

LogeshR
Posts: 2
Joined: Fri Apr 12, 2013 11:35 am

Re: Metro App - Unhandled exception in ranorex

Post by LogeshR » Wed May 08, 2013 7:30 am

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.

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

Re: Metro App - Unhandled exception in ranorex

Post by Support Team » Fri May 10, 2013 5:03 pm

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
.
Image