本文介绍了Ranorex错误TypeInitializationException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装Ranorex后我使用我的代码后工作正常,但卸载后,我有一个Ranorex付费版本库,但我不在我的电脑上安装它,只需要我的库。这行代码显示异常

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

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





在调试模式下显示;



On debug Mode shows ;

'Host.Local' threw an exception of type 'System.TypeInitializationException'





异常:



Exception :

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





是否可以使用我最常安装ranorex的库?



Is that possible for using the library I most have ranorex installed or not?

推荐答案


这篇关于Ranorex错误TypeInitializationException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 09:46