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


Question

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

1
776
5/13/2012 5:50:26 PM

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.

BTW, don't forget to turn off fusion logging off when not needed.

817
9/15/2016 2:00:13 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon