"WRN: Assembly binding logging is turned OFF." ???


  • This happened to me recently.

    During startup in my "plugin"-based application, I received a "System.IO.FileLoadException: Could not load file or assembly 'XXX.XX.XXX.XXXX' " error, which makes it quite understandable what happened, of course.

    However, I found and odd warning accompanying it:

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    This application was recently ported from VS.NET 2003 to VS 2008.
    Any idea what is this "Assembly binding logging" this warning is referring to?
    Haven't found any info on this; googling only shows me lots of "ZOMG MY APPLICATION CRASHED AND THE ERROR IS WRN ASSEMBLY BINDING LOGGING OFF", which of course, is wrong.

    I'm just curious about what this does. Any thoughts?

    - Izhido
    Friday, August 21, 2009 4:22 PM


  • It is just telling you that it wants to document the reason it can't load the assembly but can't.  Nothing to worry about, you'd use Fuslogvw.exe to turn on fusion logging on-the-fly.

    Hans Passant.
    • Marked as answer by eryang Friday, August 28, 2009 6:32 AM
    Friday, August 21, 2009 9:20 PM