Unhandleed exception when executing any tests

Ask general questions here.
andy.simpson
Posts: 23
Joined: Fri Jun 22, 2018 8:59 am

Unhandleed exception when executing any tests

Post by andy.simpson » Fri Sep 06, 2019 9:16 am

Hi,

I'm running Ranorex version 9.0.1 and am getting an unhandled exception when running any of my tests, these worked fine last time I run them (about 2 weeks ago prior to holiday) Now I seem to bet getting the below errors, I use VS 2017 for source control but getting an earlier version does not seem to rectify the issue, I've attached a screenshot of the error and the step in debugger showing where the error occurs.

Any Ideas would be greatly appreciated.
Attachments
debug.PNG
debug.PNG (45.51 KiB) Viewed 46 times
UnhandledException.PNG
UnhandledException.PNG (159.65 KiB) Viewed 46 times

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

Re: Unhandleed exception when executing any tests

Post by odklizec » Fri Sep 06, 2019 9:26 am

Hi,

At first, have you tried to run the test on another machine? At next, try to completely uninstall Ranorex and install it back. And finally, 9.0.1 is somewhat old and already obsolete, so I would recommend to update it with most recent 9.1.1. Oh and check if .Net is not corrupted on your PC? It may be helpful to reinstall it/install 4.6.2, which is anyway required for Ranorex 9.1.1.
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