Fusion Log

What is Fusion Log?

Also known as the Fusion Log or Assembly Binding Log Viewer.
This tool is installed as part of Visual Studio and is not available otherwise.
This displays details for failed assemby binds or missing dependencies.
There is a small performance hit when this is switched on.
There are two ways to enable the log.
Either from the command line or using the user interface
SS
msdn.microsoft.com/en-us/library/e74al8c4(v=vs.110).aspx

Location

Windows 7 - C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\FUSLOGVW.exe
Windows XP - C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\FUSLOGVW.exe

Registry Entries

HK Local Machine\ Software\Microsoft\Fusion\
Create the following values in the Fusion folder:
EnableLog (DWORD) = 1
ForceLog (DWORD) = 1
LogFailures (DWORD) = 1
LogResourceBinds (DWORD) = 1
LogPath (String) = C:\Temp\FusionLog
This folder path must exist already

 

Scripts

To Enable:

01
02
03
04
Set-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name ForceLog         -Value 1               -Type DWord
Set-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogFailures      -Value 1               -Type DWord
Set-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogResourceBinds -Value 1               -Type DWord
Set-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogPath          -Value 'C:\FusionLog\' -Type String

 

To Disable

01
02
03
04
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name ForceLog
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogFailures
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogResourceBinds
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogPath

 

How to Use

Add the above registry entries
Close and reopen Excel
Launch the Fuslogvw.exe to see the log entries.

 

Reference

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

posted @   霍旭东  阅读(636)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示