title: How to assembly redirect log4net to newer version
body: <p>I just upgraded log4net in my project and am having some assembly binding issues because a component relies on an older version of log4net.</p>
  
  <p>The version expected by the component is</p>
  
  <pre><code>log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821
  </code></pre>
  
  <p>The version I have is</p>
  
  <pre><code>log4net, Version=1.2.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a
  </code></pre>
  
  <p>How do I cause this binding to resolve properly (there is only one api difference and it should not matter for this component).</p>
  
  <p>I have tried adding the following to my web.config but it does not work.</p>
  
  <pre><code>  &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="log4net" publicKeyToken="1b44e1d426115821" culture="neutral" /&gt;
      &lt;bindingRedirect oldVersion="1.2.10.0" newVersion="1.2.12.0" /&gt;
    &lt;/dependentAssembly&gt;
  </code></pre>