0

I load the reference MySql.Data and verify that this is loaded.

I place

using MySql.Data;

into my code, but it cannot find MySql.Data.

There are many versions of MySql.Data available and many solutions indicated for this in previous posts.

1 Answer 1

1

One possible cause is that the .NET Framework version is incompatible with the version of the MySql Connector/NET.

Check your version of the .NET Framework, since the Connector/NET only works up to .NET Framework 4.5.x and changing the version from 4.6 to 4.5.2 worked for me. (Project > Properties > Application > Target Framework).

REFERENCE: MySQL Versions

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.