‘MySqlConnection’ is ambiguous in the namespace ‘MySql.Data.MySqlClient’

by shuff 11/15/2009 6:34:22 PM

Everything worked fine locally, but when I uploaded the website to my hosting provider I got the error:

‘MySqlConnection’ is ambiguous in the namespace ‘MySql.Data.MySqlClient’

Searching the internet for a solution didn’t work, although I found several suggestions.  I thought I’d post my solution in case someone else has this problem.

In my BIN directory I had the following files:

MySql.Data.CF.dll
MySql.Data.dll
MySql.Data.Entity.dll
MySql.Web.dll

I had to delete the file MySql.Data.CF.dll and then everything worked.  Strange considering it was not even referenced in the web.config file.

Tags:

Comments

12/4/2009 4:54:43 AM

Gautam Jain


Great! You made my day. Spent lot of time findinf a solution.

Regards.

Gautam Jain India

12/4/2009 5:00:32 AM

pingback

Pingback from bloggersworld.com

‘MySqlConnection’ is ambiguous in the namespace ‘MySql.Data.MySqlClient’

bloggersworld.com

Comments are closed

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Steve Huff
A developer in the Greater Cincinnati/Northern Kentucky area.

E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Sign in