[英]Void System.Threading.Monitor.Enter Error when using ILMerge
I'm trying to use ILMerge to combine my C# program with 3 referenced DLL's. 我正在尝试使用ILMerge将我的C#程序与3个引用的DLL结合起来。 If I run the program without merging them, everything runs well but when I merge them I get the
"Void System.Threading.Monitor.Enter"
Error. 如果我在没有合并它们的情况下运行程序,一切运行良好但是当我合并它们时,我得到
"Void System.Threading.Monitor.Enter"
错误。
Here are the DLL's I am combining: 这是我正在组合的DLL:
HTMLAgilityPack.dll
MySql.Data.dll
RKLib.ExportData.dll
The error appears to be coming from the MySql.Data.dll
but I am not really sure why it would throw this exception. 该错误似乎来自
MySql.Data.dll
但我不确定为什么会抛出此异常。
Any ideas much appreciated. 任何想法都非常感激。
EDIT: Full error I am receiving is: 编辑:我收到的完整错误是:
************** Exception Text **************
System.MissingMethodException: Method not found: 'Void System.Threading.Monitor.Enter(System.Object, Boolean ByRef)'.
at MySql.Data.MySqlClient.MySqlConnection.set_ConnectionString(String value)
at MySql.Data.MySqlClient.MySqlConnection..ctor(String connectionString) in :line 0
What version of the framework are you using? 您使用的是什么版本的框架? There is a targetplatform option you may need to set if you are using 4.0/4.5 for example.
如果您使用的是4.0 / 4.5,则可能需要设置targetplatform选项。
/targetplatform:version,platformdirectory
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.