Solved

MySql error in Visual Studio 2008 .net framework 3.5

Posted on 2009-04-07
3
938 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 24091132
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
ID: 31567688
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 75

Expert Comment

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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

627 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