.NET
.NET enable and disable Fusion log to investigate assembly loading issues
Had to investigate some Assembly Loading issues, so I wrote two batch files to enable and disable the .NET Fusion Log:
reg add "HKLM\Software\Microsoft\Fusion" /v EnableLog /t REG_DWORD /d 0 /f
Disable-Fusion-Log-.NET-Assembly-Binding-Logging.bat hosted by GitHub.
reg add "HKLM\Software\Microsoft\Fusion" /v EnableLog /t REG_DWORD /d 1 /f
Enable-Fusion-Log-.NET-Assembly-Binding-Logging.bat hosted by GitHub.
They modify the HKLM\Software\Microsoft\Fusion key REG_DWORD value EnableLog.
A few notes:
- It is very important to turn of the Fusion log settings as soon as you are finished investigating. Fusion logs potentially take a lot of resources.
- When you have a .NET host like ISS, you have to restart that host (for instance by running iisreset)
- There is also Fuslogvw.exe Assembly Binding Log Viewer, but I like logging over viewing as logs are persistent.
- There are more values under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusionyou can configure; see the answer by Gary Kindel on StackOverflow:DWORD ForceLogset value to 1DWORD LogFailuresset value to 1DWORD LogResourceBindsset value to 1String LogPathset value to folder for logs e.g. C:\FusionLog\ (ensure the final backslash is there and the folder exists).
| Reference: | dot NET enable and disable Fusion log to investigate assembly loading issues from our NCG partner Jeroen Pluimers at the The Wiert Corner blog. |
Do you want to know how to develop your skillset to become a sysadmin Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. Introduction to NGINX
2. Apache HTTP Server Cookbook
3. VirtualBox Essentials
4. Nagios Monitoring Cookbook
5. Linux BASH Programming Cookbook
6. Postgresql Database Tutorial
and many more ....
I agree to the Terms and Privacy Policy


