How to enable Assembly Binding Logging debugging .NET applications?

If you receive an “Assembly not found” error for your .NET application hosted in IIS, you may feel hopeless for not having much debugging details. IIS doesn’t show the binding trace as this slows down applications. However, there is a way to enable logging.

Example of an assembly/DLL binding issue:

Could not load file or assembly ‘Oracle.DataAccess’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

Who Unfriended me on Facebook?


Use this quick trick to enable Assembly Binding Logging so that you can see where the binding is failing.

  1. Go to “Start > Run”
  2. Enter “regedit
  3. Go to this key: “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion”
  4. Change the value of “EnableLog” to “1”. If this key doesn’t exist, create it with DWORD(32-bit) type

Note: Another way of viewing details for failed assembly bindings is to use Microsoft’s Fuslogvw tool. This tool is installed with Visual Studio. Refer to the link below for more details.


Spread the word!

2 thoughts to “How to enable Assembly Binding Logging debugging .NET applications?”

Leave a Reply

Your email address will not be published. Required fields are marked *