How to enable assembly bind failure logging (FUSION) in .NET.
Set the following registry value:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion!EnableLog] (DWORD) to 1
To disable, set to 0 or delete the value.
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 String LogPath set value to folder for logs ie) C:\FusionLog\
Make sure you include the backslash after the folder name.
If you have the Windows SDK installed on your machine, you'll find the "Fusion Log Viewer" under Microsoft SDK\Tools (just type "Fusion" in the start menu on Vista or Windows 7). Launch it, click the Settings button, and select "Log bind failure" or "Log all binds".
I just posted this on a similar question - I think it's relevant here too.
I usually use the fusion log viewer (fuslogvw.exe from a visual studio command prompt or Fusion Log Viewer from the start menu) - my standard setup is:
- Open fusion log viewer
- Click settings
- Check the Enable custom log path checkbox
- Enter the location you want logs to get written to, e.g. c:\FusionLogs (Important: make sure that you have actually created this folder in the file system.)
- Make sure that the right level of logging is on (I sometimes just select Log all binds to disk just to make sure things are working right)
- Click OK
- Set the log location option to Custom
Remember to turn of logging off once you're done!
Gary's solutions worked for me although I also had to follow by resetting IIS.
Note I configured this in a clean environment where I didn't want to install SDKs and the like.
where can I find this path?? HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion & is that for my local machine only?? as I've this error message from the site after publishing online