title: Two different assembly versions "The located assembly's manifest definition does not match the assembly reference"
body: <p>I have a project that I am working on that requires the use of the Mysql Connector for NHibernate, (Mysql.Data.dll). I also want to reference another project (Migrator.NET) in the same project. The problem is even though Migrator.NET is built with the reference to MySql.Data with specific version = false, it still tries to reference the older version of MySql.Data that the library was built with instead of just using the version that is there.. and I get the exception listed in the title:</p>
  
  <blockquote>
    <p>----> System.IO.FileLoadException : Could not load file or assembly
    'MySql.Data, Version=1.0.10.1,
    Culture=neutral,
    PublicKeyToken=c5687fc88969c44d' or
    one of its dependencies. The located
    assembly's manifest definition does
    not match the assembly reference.
    (Exception from HRESULT: 0x80131040)</p>
  </blockquote>
  
  <p>The version I am referencing in the main assembly is 6.1.3.0. How do I get the two assemblies to cooperate?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>For those of you specifying Assembly Binding Redirection, I have set this up:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral"/&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-6.1.3.0" newVersion="6.1.3.0"/&gt;
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
    &lt;/runtime&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I am referencing this the main assembly in another project and still getting the same errors. If my main assembly is copied local to be used in the other assembly, will it use the settings in app.config or does this information have to be included with every application or assembly that references my main assembly?</p>