问题
Assembly Binding Log Viewer (fuslogvw) is not logging bindings for any version of the framework installed on my machine.
I tried using a custom log location, the default log location, the default category, and the native images category.
Assembly Binding Log Viewer worked a few months ago. I'm on a 64-bit machine and am running C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\x64\FUSLOGVW.exe
回答1:
Going into Internet Explorer --> Tools --> Internet Options --> Browsing History,Delete..., , checking Temporary Internet Files and clicking delete fixed my issue.
Thanks to this blog post: http://www.request-response.com/blog/CommentView,guid,9f383687-3e1e-4568-833b-ef80e0938337.aspx
回答2:
After much frustration I have found that by default, fuslogw does not log assembly binding failures!
You need to click 'settings' then select "log bind failures to disk", otherwise you won't see anything in the window
回答3:
If you're building an ASP.NET MVC application (or possibly any other application involving IIS) restarting IIS was required to start getting binding logs.
回答4:
According to this post it uses the IE Cache for logging. So it is a better idea to avoid clearing the browsing history all together and click on Settings->Enable Custom Log Path and choose a directory where you won't be sharing with IE.
回答5:
I use the script from this blog post to enable fuslogvw.exe's logging, without the need to use the exe itself.
The script can be downloaded here.
This script "enables" and "disables" custom settings for the Fusion Log Viewer tool.
Enabling settings will:
- Create a log folder (default: C:\fusionlogs)
- Add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\LogPath and set it to the log folder
- Set HKEY_LOCAL_MACHINE\SOFTWAR\Microsoft\Fusion\LogFailures to 1
- Optionally set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\ForceLog to 1
- Optionally set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\LogResourceBinds to 1
Disabling settings will:
- Delete the log folder and its contents
- Delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\LogPath
- Set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\LogFailures to 0
- Set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\ForceLog to 0
- Set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\LogResourceBinds to 0
来源:https://stackoverflow.com/questions/3240278/assembly-binding-log-viewer-fuslogvw-not-logging-any-bindings