Last post Jan 15, 2009 06:38 PM by celticdeveloper
Apr 26, 2007 04:54 PM|lejdborg|LINK
I've installed the MySQL .NET Connector and am reading the article
When I try to use the source code I get loads of errors, and when I checked more into it I've got a warning telling me that the class Mysql.Data.MysqlClient can't be found or that it doesn't contain any public members. Why do I get this error?
Thanks in advance!
Apr 26, 2007 08:04 PM|eseidel|LINK
Try to add a reference to the project.
Apr 27, 2007 02:02 PM|lejdborg|LINK
Apr 27, 2007 02:04 PM|eseidel|LINK
Please mark as answer. Thank you.
May 01, 2007 01:51 PM|lejdborg|LINK
May 03, 2008 09:21 PM|Webmonkeymon|LINK
how do you add this reference?
does not work?
Jun 19, 2008 01:53 PM|Webmonkeymon|LINK
just right click on the project and browse to the web bin folder where you just copied the mysql.data.dll file. Not the mysql.web.dll file.
the file is here if you have not copied it to the bin folder. C:\Program Files\MySQL\MySQL Connector Net 5.1.6\Binaries\.NET 2.0
Jan 15, 2009 06:38 PM|celticdeveloper|LINK
In vb.net, after adding reference to the dll, the correction is --
I was having this warning
Warning 1 Namespace or type specified in the Imports 'mysql.data.SqlClient' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported
element name doesn't use any aliases.
because the the namespace is case-sensitve.