I'm currently working on a database project using Visual Basic .NET, and it uses MySQL. Just a moment ago, I've updated my database connector, MySQL Connector/NET from version 5.2.5 to 6.0.3, after seeing such new version from MySQL's website. Before installing the new one, I was told to remove the old one first, so I did. The update was successful, but I was surprised to see several error messages when recompiling my project, telling me that "Type of 'MySQLConnection' is not defined".

Click on the picture to see a bigger version.
Follow up:
I wonder what the problem was at that moment, thinking may be it was caused by missing reference to the Connector/NET. After checking on the application settings, it was found that the configuration still has the old reference, pointing to the old version of the connector. By updating the old reference with a new one, the project can now be compiled successfully.

Click on the picture to see a bigger version.
For those who experiences the same problem, here's the solution:
- Go to the application's Reference settings page by double clicking My Projects in the Solution Explorer.
- Choose the old MySQL.Data reference, then remove it by clicking 'Remove' button under the list
- Click 'Add' button. Then 'Browse' to choose and add the new MySQL.Data reference
That's it. Hopefully you'll have a working connector by now ![]()
References (no pun intended):
http://msdn.microsoft.com/en-us/library/wkze6zky.aspx









Recent comments