Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MySql error in Visual Studio 2008 .net framework 3.5

Posted on 2009-04-07
3
Medium Priority
?
951 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 1500 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this article, we’ll look at how to deploy ProxySQL.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

661 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