title: How to turn on assembly binding logging in C#?
body: <p>I ran into this error and couldn't figure what's missing:</p>
  
  <pre><code>{"Could not load file or assembly 'xxxxx, Version=1.0.0.42, Culture=neutral, PublicKeyToken=c5067b3d1110b13c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"xxxxx, Version=1.0.0.42, Culture=neutral, PublicKeyToken=c5067b3d1110b13c"}
  </code></pre>
  
  <p>In the detailed exception window, it also tells me:</p>
  
  <pre><code>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].
  </code></pre>
  
  <p>However, I couldn't make it work. I found another post about this <a href="https://stackoverflow.com/questions/255669/how-to-enable-assembly-bind-failure-logging-fusion-in-net">here</a>. I tried those entries:</p>
  
  <pre><code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion
  Add:
  DWORD ForceLog set value to 1
  DWORD LogFailures set value to 1
  DWORD LogResourceBinds set value to 1
  String LogPath set value to folder for logs ie) C:\FusionLog\
  </code></pre>
  
  <p>But it still doesn't work. Actually, I also set EnableLog to 1. </p>
  
  <p>What did I do wrong? Can somebody please help. I'm using C# express 2010 in WinXP.</p>