Page 1 of 1

Ranorex API Host.Local crashes without detailed error

Posted: Wed Aug 14, 2019 10:30 pm
by veraw
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

Re: Ranorex API Host.Local crashes without detailed error

Posted: Fri Aug 16, 2019 11:44 am
by Support Team
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