由{myassembly}导入的过程无法加载 [英] A procedure imported by {myassembly} could not be loaded
问题描述
在运行prorgam时,似乎我错过了一个图书馆,当我启动我的项目的输出时,我在启动时遇到异常。
mscorlib.dll中发生类型为System.IO.FileLoadException的第一次机会异常
在mscorlib.dll中发生类型为System.IO.FileLoadException的未处理的异常
附加信息:由'我的程序集,版本= xx.1.1.0,Culture = neutral,PublicKeyToken = 7292581204d9e04a'导入的过程无法加载。
'ScriptX.vshost.exe'(Managed):加载'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll ',没有符号加载。
我的问题是:如何确定哪个库缺失,因为在这一点上,我看不到值传递给:
mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile,System.Security.Policy.Evidence assemblySecurity ,string [] args)+ 0x3a bytes
实际上是一个内置的机制,只是这些诊断。
(1)在你的项目属性/ Debug中,确保检查启用本机代码调试:
(2)提高。
when running a prorgam, it seems that I am missing a library, when I launch the output of my project I get an exception at startup.
A first chance exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll
An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll
Additional information: A procedure imported by 'my assembly, Version=xx.1.1.0, Culture=neutral, PublicKeyToken=7292581204d9e04a' could not be loaded.
'ScriptX.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', No symbols loaded.
My question is: how can I determine which library is missing because, at this point, I cannot see the values passed to:
mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x3a bytes
There is in fact a built in mechanism for just these diagnostics.
(1) In your project properties/Debug, make sure 'Enable native code debugging' is checked:
(2) Raise the show-loader-snaps flag - it is a registry key in the IFEO, and is accessible via the 'GlobalFlags' GUI:
(3) Run the app and inspect the (very) verbose output pane. You can mostly skip to the end or look for 'ERROR'.
More details here.
这篇关于由{myassembly}导入的过程无法加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!