title: MySQL connector 6.7.4 and Entity Framework 5 exceptions
body: <p>I downloaded <a href="https://dev.mysql.com/downloads/connector/net/">MySQL Connector/Net 6.7.4</a> and <a href="https://dev.mysql.com/downloads/windows/installer/">MySQL for Visual Studio 1.0.2</a>, and then followed <a href="http://msdn.microsoft.com/en-US/data/jj206878">these instructions</a> to test it:</p>
  
  <ol>
  <li>Create a connection to the existing MySQL database.</li>
  <li>Create a console application.</li>
  <li>Add the <em>ADO.NET Entity Data Model</em> from the existing database connection.</li>
  <li>Add Code Generation Item <em>EF 5.x DbContext Generator</em>, replacing the .tt files.</li>
  <li>Write some code that retrieved records from the database.</li>
  </ol>
  
  <p>Running the application, I got this exception:</p>
  
  <blockquote>
    <p><strong>ConfigurationErrorsException</strong>: Failed to find or load the registered .Net Framework Data Provider.</p>
  </blockquote>
  
  <p>Then I added references to the <code>MySql.Data</code> and <code>MySql.Data.Entity</code> libraries version 6.7.4.0 to my .NET 4.5 project. Now when I run the application, I get a different exception:</p>
  
  <blockquote>
    <p><strong>FileLoadException</strong>: Could not load file or assembly 'MySql.Data, Version=6.6.5.0,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>Note the version number, which is not the version of MySQL Connector that I have installed.</p>
  
  <p>How do I get it working correctly?</p>