We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

MySql.Data.MySqlClient

REA_ANDREW
REA_ANDREW asked
on
Medium Priority
1,424 Views
Last Modified: 2012-05-05
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?

Comment
Watch Question

Commented:
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

Author

Commented:
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:
 
Commented:
Did you add the reference correctly as i mentioned?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.