53

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

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
David Silva Smith
  • 11,498
  • 11
  • 67
  • 91

6 Answers6

53

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

kkahl
  • 415
  • 5
  • 17
David Silva Smith
  • 11,498
  • 11
  • 67
  • 91
  • 1
    Okay, so the obvious elephant in the room here is that if I uninstalled Internet Explorer then I can't use this? – marknuzz May 23 '14 at 08:10
  • 1
    @Nuzzolilo There should be a way to reduce the number of temporary internet files on your system. Maybe try this? http://windows.microsoft.com/en-us/windows-vista/delete-temporary-internet-files I don't use Windows much anymore. – David Silva Smith May 25 '14 at 06:44
  • 1
    Thanks I was able to find the options despite having it uninstalled – marknuzz May 26 '14 at 07:20
  • 5
    Note that [MSDN](https://msdn.microsoft.com/en-us/library/e74a18c4(v=vs.110).aspx) states that the IE cache is only used when not using a custom log location. –  Jul 09 '16 at 04:31
39

After much frustration I have found that by default, fuslogvw 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.

To change the settings, you may have to run fuslogw.exe as administrator.

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
Andy
  • 10,412
  • 13
  • 70
  • 95
  • 2
    I needed to browse to the right directory because in the command-prompt it used fuslogvw in the directory v10.0A. The one I needed was in the directory v7.0A. – redcurry Apr 11 '16 at 15:03
  • 6
    Also need to click Refresh to see stuff – altumano Dec 01 '17 at 13:20
  • 1
    @redcurry it took me about 20 google searches to finally find your response about v7.0A, and that was the answer to my problem of getting it to run for an MVC site running through my local IIS. THANK YOU! – James P. Wright Jan 17 '19 at 00:00
  • I [posted an answer](https://stackoverflow.com/a/61012329/704281) pointing to a tool called [Fusion++](https://github.com/awaescher/Fusion). I just thought to mention it here to make it visible to you. – Waescher Apr 03 '20 at 12:58
  • The developer(s) of fuslogvw know very little about a good user experience! – Tony_Henrich Apr 20 '22 at 22:59
26

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.

Justin Helgerson
  • 24,900
  • 17
  • 97
  • 124
  • Similar with Cassini (Visual studio temp webserver). need to stop it and it will restart once you relaunch project – Dave Aug 07 '15 at 16:24
14

The Assembly Binding Log Viewer (FUSLOGVW.exe) has quite some glitches.

Like the fact that it does not bind errors by default when running or that you have to make sure to not add an additional backslash to a custom log path. You cannot use the UI to go on error hunt you literally have to scan the file system to read logs. Heck, you cannot even resize the app window.

There's so much wrong with it that I decided to write an alternative assembly binding log viewer named Fusion++ and put it on GitHub. It uses the same mechanics internally but parses the logs for you. You don't have to care for any settings at all, not even log paths

You can get the latest release from here or via chocolatey (choco install fusionplusplus).

Fusion++

Waescher
  • 5,361
  • 3
  • 34
  • 51
  • 1
    Thanks for that! Wow, Reading through this post and answer, what a painful app! Unreal, doing something in IE impacts a completely unrelated dev tool! Thank you for making something better! P.S. I love dark mode! Thank you! – David Silva Smith Apr 05 '20 at 12:21
  • Thanks David. Glad you like it. – Waescher Apr 06 '20 at 17:25
  • 1
    @Waescher where has this app been all my life? Thanks! :-) – bart May 04 '21 at 18:43
  • 1
    Oh my god. This is going to be such a time saver. Immediately shared this with my entire team. That being said, my problem was that I needed to reset IIS. But still... – Mike Loux Feb 16 '23 at 19:00
  • 1
    Outstanding piece of work! The tool initially wasn't capturing anything but started to do so after an iisreset. (And the actual culprit turned out to an old version of the DDL cached within the "Temporary ASP.NET Files" folder.) – track0 Mar 16 '23 at 23:07
8

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.

Seth
  • 8,213
  • 14
  • 71
  • 103
7

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
cederlof
  • 7,206
  • 4
  • 45
  • 62