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:
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
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
作者:旭東
出處:http://www.rzrgm.cn/HQFZ
關于作者:專注于微軟平臺項目架構、管理和企業解決方案。現主要從事WinForm、ASP.NET、WPF、WCF、等方面的項目開發、架構、管理。如有問題或建議,請不吝指教!
本文版權歸作者,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文連接。如有問題,可以聯系我,非常感謝。
如果您該文覺得不錯或者對你有幫助,請點下推薦,讓更多的朋友看到,謝謝!

浙公網安備 33010602011771號