Link to home
Start Free TrialLog in
Avatar of REA_ANDREW
REA_ANDREWFlag for United Kingdom of Great Britain and Northern Ireland

asked on

MySql.Data.MySqlClient

Can some one please tell me how to get this referencve to work in .net

In my assemblies I have the MySql.Data but when I run the code it says it cannot find it

MySql.Data.Data.MySqlClient

It is there but for some reason still won't have it. Does an any one have any ideas?

Avatar of Noman
Noman

1) Right - Click on your project
2) Select Add reference
3) From the .NET tab if you cannot see Mysql.Data.Dll then click on browse
4) Navigate to your mysql installation folder
5) Select te dll file

Let me know if you need further help.

Regards
Avatar of REA_ANDREW

ASKER

I get this error

Compiler Error Message: CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

 

Line 15:     protected void Page_Load(object sender, EventArgs e)
Line 16:     {
Line 17:         MySql.Data.MySqlClient.MySqlConnection conn;
Line 18:         string myConnectionString;
Line 19:
 
ASKER CERTIFIED SOLUTION
Avatar of Noman
Noman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial