I have added the following to the registry key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion:
If I start an ASP.NET web site from Visual Studio it throws a Parser Error:
Could not load file or assembly 'CMS.Controls, Version=4.1.3518.21577, Culture=neutral, PublicKeyToken=834b12a258f213f9' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Now if I refresh or restart the Assembly Binding Log Viewer it's empty. Shouldn't it log this error?
Only when I add DWORD ForceLog 1 to the registry it logs the error. But then the log fills up with all the successful bindings as well, and since it doesn't sort by name, it's difficult to find the error in the list.
Thanks!
The Assembly Binding Log Viewer, or "Fusion Log Viewer" will tell the CLR to load assembling binding/loading activities to a folder, then let you see them. Be sure to run it as Administrator if you want to change the Settings, otherwise they'll be grayed out. Alternatively, just set the Registry keys your self.
The Fusion Log Viewer does all that for you. Go to Start -> Programs -> Visual Studio xxxx > Visual Studio Tools > Visual Studio Command Prompt (run as admin) and type "fuslogvw". In Settings you adjust the logging. To turn on/off logging handy, I've created .
This question is similar to How to enable assembly bind failure logging (Fusion) in .NET related to Fusion bind logging
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With