我遇到了这个错误,无法弄清楚缺少什么:
{"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"}
在详细的异常窗口中,它还告诉我:
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].
但是,我无法让它工作。我找到了另一篇关于这个的帖子 here .我尝试了这些条目:
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。
我做错了什么?有人可以帮忙吗?我在 WinXP 中使用 C# express 2010。
最佳答案
关于c# - 如何在 C# 中打开程序集绑定(bind)日志记录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4150980/