Reputation: 305
A have a project which have to connect mysql server. For this I have to import the Mysql.data.dll. I did it. And after that I want to run my project the compiler says "Error 2 The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?) C:\Users\User\Documents\Visual Studio 2013\Projects\Project_name\Project_name\Db_Handling.cs 6 7
". But the dll among the added references and I imported it with using. And the same happened in vs 2012 and 2013, although I have an other project with this dll.
I (want to )use the 6.7.2.0 version of mysql dll if it help anything.
Upvotes: 0
Views: 298
Reputation: 26209
Problem : as you said you have already added the Mysql
dll and referenced required namespaces by using
statement, i think the only problem is IDE is not pickingup the latest MySQL references added to the project.
Solution : you can clean
and rebuild
the whole solution to get the recently added references into your projet.
Upvotes: 1