Ranorex API Host.Local crashes without detailed error

Ask general questions here.
veraw
Posts: 1
Joined: Wed Aug 14, 2019 6:07 pm

Ranorex API Host.Local crashes without detailed error

Post by veraw » Wed Aug 14, 2019 10:30 pm

We are currently using Ranorex API via Visual Studio, and works find on numerous machines, but on a certain locked down machine. (Where Ranorex Studio works and has a valid Floating license) but when the C# script attempts to access Host.Local, it fails and has a general code 42 error message displayed, without any real description to the error.

We have tried elevated (admin) privileges.
C# calls the Assembly Resolver Initialize and the TestingBootstrapper.SetupCore

Like I said all works find on certain machines with local admin

But on a locked-down machine, this approach via C# / VS using Ranorex API fails.

Any idea what the issue could be? (Within the console StdOut there is not error regarding license)

All functionality for Ranorex Studio / Spy works fine.

Ranorex 9.1 is being used.

Thanks

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Ranorex API Host.Local crashes without detailed error

Post by Support Team » Fri Aug 16, 2019 11:44 am

Hello veraw,

The error code 42 basically means that no valid license is available. You wrote that Ranorex Spy works on that machine, so a license should be available.
You can call the method WaitForValidLicense() in your test and check if the issue persists.

If this doesn't help, please contact us via the online support query.

Regards,
Bernhard