Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After I use my code when Ranorex is installed is works fine, but after uninstalled it, I have a library of Ranorex payed version, but I don't install it on my PC, just I need the library. there an exception showed with this line of code
C#
Form form = Host.Local.FindSingle<Ranorex.Form>("form[@processname='" + pr.ProcessName + "']");


On debug Mode shows ;
C#
'Host.Local' threw an exception of type 'System.TypeInitializationException'


Exception :
C#
Exception thrown: 'System.TypeInitializationException' in Ranorex.Core.dll Additional information: The type initializer for 'Ranorex.Core.ElementEngine' threw an exception.


Is that possible for using the library I most have ranorex installed or not?
Posted
Comments
Mehdi Gholam 28-Nov-15 6:23am    
Make sure all the necessary dll files are beside your application exe.
juste_3al_faza 28-Nov-15 6:30am    
All exist, this exception when I uninstall Ranorex, but if I reinstall again it works

1 solution

Of course you must have Ranorex installed to run your code if it refers to some Ranorex type. To compile, it is sufficient to have it installed without any license. To run, you need of course a valid license. See www.ranorex.com.
Regards
Andi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900