开发者

How to turn on assembly binding logging in 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\

But it still doesn't work. Actually, I also set EnableLog to 1.

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

Does this help?


Try running C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\FUSLOGVW.exe to see if you have logs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜