2

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.

2
  • 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/… Commented Mar 1, 2017 at 16:50
  • Please make sure your connection string is correct (I had a similar issue myself) Commented May 16, 2017 at 7:27

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.