How to enable assembly bind failure logging (Fusion) in .NET

user32736 picture user32736 · Nov 1, 2008 · Viewed 458.6k times · Source

How do I enable assembly bind failure logging (Fusion) in .NET?

Answer

Gary Kindel picture Gary Kindel · Oct 6, 2009

Add the following values to

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
DWORD EnableLog set value to 1
String LogPath set value to folder for logs (e.g. C:\FusionLog\)

Make sure you include the backslash after the folder name and that the Folder exists.

You need to restart the program that you're running to force it to read those registry settings.

By the way, don't forget to turn off fusion logging when not needed.

enter image description here