Ranorex Spy failed to load assemblies
Posted: Thu Jun 13, 2013 7:50 am
Hi Ranorex Team
Can you please advice why standalone Ranorex.Spy (not started from Ranorex Studio) could fail to load assemblies ?
Brief description of this case:
1. Application under test: Winforms app
2. System: Window 7, 32 bit
3. Ranorex version: 4.0.2
I simply start application, start Ranorex.Spy - and try to track any element in application under test. For ANY element - I'm getting warning in Ranorex.Spy "Failed to load assemblies". Spy and application is started from same user, from local drive. Application is not obfuscated. It works well if I run both Spy and application on another PC (with other OS: Windows Server 2003).
Also:
Ranorex Studio can't highlight elements from repository (seems that it can't find it, and I suspect for same reason: failed to load assemblies)
But:
Runtime is working well I compile test into dll and run them using nUnit. And there are no issues with finding elements in run-time.
P.S. I found one workaround for that, but I don't like it. If I copy all Ranorex dlls and Ranorex.Spy.exe to same folder where my application is, and then start Ranorex.Spy from same folder where app.exe is located, then it works well. But this is bad options because when new versions of application is released I need to re-copy all ranorex files, and still and I can't use "highlight" option from ranorex studio repositories.
Can you please advice why standalone Ranorex.Spy (not started from Ranorex Studio) could fail to load assemblies ?
Brief description of this case:
1. Application under test: Winforms app
2. System: Window 7, 32 bit
3. Ranorex version: 4.0.2
I simply start application, start Ranorex.Spy - and try to track any element in application under test. For ANY element - I'm getting warning in Ranorex.Spy "Failed to load assemblies". Spy and application is started from same user, from local drive. Application is not obfuscated. It works well if I run both Spy and application on another PC (with other OS: Windows Server 2003).
Also:
Ranorex Studio can't highlight elements from repository (seems that it can't find it, and I suspect for same reason: failed to load assemblies)
But:
Runtime is working well I compile test into dll and run them using nUnit. And there are no issues with finding elements in run-time.
P.S. I found one workaround for that, but I don't like it. If I copy all Ranorex dlls and Ranorex.Spy.exe to same folder where my application is, and then start Ranorex.Spy from same folder where app.exe is located, then it works well. But this is bad options because when new versions of application is released I need to re-copy all ranorex files, and still and I can't use "highlight" option from ranorex studio repositories.