Note that there are some explanatory texts on larger screens.

plurals
  1. POMySQL connector 6.7.4 and Entity Framework 5 exceptions
    primarykey
    data
    text
    <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>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload