Solved

MySql error in Visual Studio 2008 .net framework 3.5

Posted on 2009-04-07
3
914 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 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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