Every one of us, software developers, experienced situations where the .Net Framework could not locate an assembly and ended up facing the TypeLoadException. These failures usually happen due to an assembly deployed to the wrong location or a mismatch in version numbers or cultures. A quick way to check what went wrong is to open the module window (Visual Studio) during debugging but that may be sometimes impossible or inconvenient because:
Luckily, there is an assembly binding log viewer which displays information that helps us diagnose why the .NET Framework can not locate an assembly at run time. This tool is called Fuslogvw (short for Fusion Log Viewer) and can be launched from the Visual Studio Command Prompt. Go to Start->Microsoft Visual Studio 2005/2008->Visual Studio tools->Visual Studio Command prompt and type fuslogvw. This is what you get:
Although this tool is already installed with the .NET Framework, many developers don’t know about it, so I hope that this post will help spread the word about fuslogvw because it may become very helpful sometimes.
We pay for user submitted tutorials and articles that we publish. Anyone can send in a contribution
Learn More
Will Said on Jun 18, 2008 :
I believe that after you configure you have to reboot in order to start logging. I’m not entirely sure, but the last time I used fuslogvw that’s what I had to do…
Shahar Y Said on Jun 18, 2008 :
Hi Will,
I started using it lately, and you don’t have to reboot in order to start logging.