简体   繁体   English

Ranorex System.TypeInitializationException

[英]Ranorex System.TypeInitializationException

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. 在安装Ranorex后使用我的代码可以很好地工作,但是在卸载它之后,我有了一个Ranorex付费版本的库,但是我没有在我的PC上安装它,只需要该库。 there an exception showed with this line of code 这行代码显示异常

Form form = Host.Local.FindSingle<Ranorex.Form>("form[@processname='" + pr.ProcessName + "']");

On debug Mode shows ; 调试模式显示;

'Host.Local' threw an exception of type 'System.TypeInitializationException' “ Host.Local”引发了“ System.TypeInitializationException”类型的异常

Exception : 例外情况:

Exception thrown: 'System.TypeInitializationException' in Ranorex.Core.dll Additional information: The type initializer for 'Ranorex.Core.ElementEngine' threw an exception. 引发异常:Ranorex.Core.dll中的'System.TypeInitializationException'其他信息:'Ranorex.Core.ElementEngine'的类型初始值设定项引发了异常。

对于Ranorex及其组件,至少需要Ranorex Runtime Licencse。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM