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

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