I use EntityFramework(v.6.0.0.0) code first. .Net framework 4.6.01586. MySQL connector Version=6.9.9.0. MySQL server version = '5.5.28' .When I try to "update-database" i get this error "Type is not resolved for member 'MySql.Data.MySqlClient.MySqlException,MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'.". It is regular migration. Just "CreateTable". I tried to generate script and apply it to the database manually (via MySql Workbench)and it works. If I use Sql("my sql script") via migration it does not work too.
-
You are targeting (or are using .DLLs that targets) some .NET framework version "x", but the version installed in your computer is "y". Take a look: stackoverflow.com/questions/42162456/…rafaelc– rafaelc2017-03-01 16:50:43 +00:00Commented Mar 1, 2017 at 16:50
-
Please make sure your connection string is correct (I had a similar issue myself)Alin Ciocan– Alin Ciocan2017-05-16 07:27:27 +00:00Commented May 16, 2017 at 7:27
Add a comment
|
1 Answer
Have you installed MySQL Connector ? I have downloaded mysql-connector-net-6.9.9.msi and it solved my problem. Download link https://dev.mysql.com/downloads/file/?id=463758