Last post Feb 24, 2012 07:55 PM by Andy22
Feb 24, 2012 05:55 PM|Andy22|LINK
I'm using MySQL with Asp.net for the first time.
I'm trying to simply open the connection to the DB.
However I'm getting the error that MySQLData cannot be found and therefore MySQLConnection is undefined.
I did add references to MySql.Data.dll & MySql.Web.dll v4.0....
Any ideas why it would still not show up even after the references where added...?
I'm also importing the namespace in the code:
<%@ Import Namespace="MySQL.Data" %>
Feb 24, 2012 06:15 PM|vckreddyece|LINK
I tried createing MySQLConnection in ASP MVC 2 application and It worked for me.
I imported <%@
%> after adding MySql.Data.dll reference. Then I was able to create the connection.
Feb 24, 2012 07:55 PM|Andy22|LINK
I referenced the DLLs in the MySQL folder and not in my bin folder...
The DLLs had to be in the Bin.