Solved

MySql error in Visual Studio 2008 .net framework 3.5

Posted on 2009-04-07
3
904 Views
Last Modified: 2013-11-08
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

0
Comment
Question by:radcoders
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
Comment Utility
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
 

Author Closing Comment

by:radcoders
Comment Utility
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
 
LVL 74

Expert Comment

by:käµfm³d 👽
Comment Utility
Glad to (partly) help.  :)
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now