本文介绍了如何在C#中打开程序集绑定日志记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了这个错误,无法弄清丢失的内容:
I ran into this error and couldn't figure what's missing:
{"Could not load file or assembly 'xxxxx, Version=1.0.0.42, Culture=neutral, PublicKeyToken=c5067b3d1110b13c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"xxxxx, Version=1.0.0.42, Culture=neutral, PublicKeyToken=c5067b3d1110b13c"}
在详细的异常窗口中,它还告诉我:
In the detailed exception window, it also tells me:
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
但是,我无法使其正常运行.我在此处找到了另一篇文章.我尝试了这些条目:
However, I couldn't make it work. I found another post about this here. I tried those entries:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion
Add:
DWORD ForceLog set value to 1
DWORD LogFailures set value to 1
DWORD LogResourceBinds set value to 1
String LogPath set value to folder for logs ie) C:\FusionLog\
但是它仍然不起作用.实际上,我还将EnableLog设置为1.
But it still doesn't work. Actually, I also set EnableLog to 1.
我做错了什么?有人可以帮忙吗?我正在WinXP中使用C#express 2010.
What did I do wrong? Can somebody please help. I'm using C# express 2010 in WinXP.
推荐答案
http://www.codeproject.com/Tips/141281/WRN-Asssembly-binding-logging-is-turned-OFF
有帮助吗?
这篇关于如何在C#中打开程序集绑定日志记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!