Test executable crashed with unhandled exception.

Ask general questions here.
sindhu
Posts: 4
Joined: Thu Jul 11, 2019 2:01 pm

Test executable crashed with unhandled exception.

Post by sindhu » Fri Oct 18, 2019 4:47 am

Hi All


When i am trying to execute ranorex application from local visual studio its working fine and ranorex testcases are executing. But when i host the application in IIS it is showing the following error.

Test executable crashed with unhandled exception.

Please ensure all required prerequisites are installed:
- .Net Framework 4.5
- VC++ Redistributable (2017)

For more information visit: https://www.ranorex.com/help/v9.1/xcopy-deployment




System.TypeInitializationException: The type initializer for 'Ranorex.Core.Configuration' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Ranorex.Core.Config.ConfigIO' threw an exception. ---> System.ArgumentException: Path cannot be empty or whitespace only.
at Ranorex.Common.Types.AbsoluteDirPath.FromString(String dirPath)


can any one help on this??

thanks in advance

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5256
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Test executable crashed with unhandled exception.

Post by odklizec » Fri Oct 18, 2019 7:08 am

Hi,

The error message already gave you some suggestions. Are you sure there are installed required libs on the target machine? For more details, regarding required libs, see this page:
https://www.ranorex.com/help/latest/ran ... uirements/
Basically, you must install these libs, either manually or via Ranorex setup, on each machine, on which you want to run Ranorex tests. Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

sindhu
Posts: 4
Joined: Thu Jul 11, 2019 2:01 pm

Re: Test executable crashed with unhandled exception.

Post by sindhu » Fri Oct 18, 2019 7:51 am

Hi ,
Thanks for your response.
Our VS application which calls ranorex test cases(.exe) are functioning as below

Server(VS application & Ranorex Test script code.exe present ) -> Test Device ( where the test scripts should be executed via Agent)

Cmd prompt Execution is passed but when host VS app in IIS we get the above mentioned error

Kinldy confirm the mentioned libs and softwares in the below link should also be installed in the Test device ?

https://www.ranorex.com/help/latest/ran ... uirements/

Note : we are using Ranorex 9.1.1

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5256
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Test executable crashed with unhandled exception.

Post by odklizec » Fri Oct 18, 2019 8:04 am

Hi,

If you click link Ranorex Studio 9.1 (on system requirement page), you should be redirected to list of all required libs, which must be installed on target test system. Hope this helps? If I were you, I would simply install entire Ranorex Studio on target system. All required libs are installed automatically, except SDK for .NET Framework 4.6.2. I believe, that this one was added in Ranorex 9.2 setup.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration