由{} MyAssembly的进口的过程无法加载 [英] A procedure imported by {myassembly} could not be loaded
问题描述
运行prorgam的时候,好像是我缺少一个库,当我启动我的项目的输出,我得到在启动时异常。
键入System.IO.FileLoadException的第一个机会异常出现在mscorlib.dll
型'System.IO.FileLoadException未处理的异常出现在mscorlib.dll
附加信息:通过我的组装,版本= xx.1.1.0,文化=中性公钥= 7292581204d9e04a'进口的过程无法加载。
'ScriptX.vshost.exe(托管):已加载C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll ',没有符号加载。
我的问题是:我怎么能确定哪个库丢失,因为,在这一点上,我看不到传递到值:
mscorlib.dll中System.AppDomain.ExecuteAssembly(字符串assemblyFile,System.Security.Policy.Evidence assemblySecurity ,字串[] args)+ 0x3a字节
有其实一个内置的机制,只是这些诊断
(1)在你的项目属性/调试,确保启用本地代码调试被选中:
(2)提高的显示 - 架卡扣的标志 - 它是在一个IFEO注册表项,并访问通过'GlobalFlags'GUI:
< IMG SRC =http://i.stack.imgur.com/2SgTe.pngALT =在这里输入的形象描述>
(3)运行应用程序并检查(的非常的)详细输出窗格。您可以大都跳到最终还是去找错误。
更多细节的这里。
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屋!