MySql error in Visual Studio 2008 .net framework 3.5

Could not load file or assembly 'MySql.Data, Version=5.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference

The code is the same that worked before as .net 2.0 and 'MySql.Data, Version=5.1.4.0   but upgraded app to .net 3.5 and upgraded to 'MySql.Data, Version=5.2.2.0  now get this error.  

Removed and reloaded .dll references  

Stumped.  any help would be appreciated
providerFactory = System.Data.Common.DbProviderFactories.GetFactory(providerName);

Open in new window

radcodersAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
käµfm³d 👽Connect With a Mentor Commented:
Did you completely remove the old MySQL connector? .NET may still be trying to pull in the old dll, but marking it as the one you referenced--hence the version mismatch.
0
 
radcodersAuthor Commented:
you got me thinking and I checked the MySQL reference in web.config was OK, but realized that I was using dbfactories to go back and forth between Oracle, MySQL etc....  and had to fix the following line to match the updated version:

0
 
käµfm³d 👽Commented:
Glad to (partly) help.  :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.