Solved

MySQL/.Net Connector problem

Posted on 2008-06-11
4
1,361 Views
Last Modified: 2008-06-12
Hi esperts.
I am migratin an application developed on VS express 2005 with a MySql database.
When trying to compile the app in the new computer I get the following error:

An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not load file or assembly 'MySql.Data, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

Any idea what the problem is?The file is in its correct place in the /program files/mysql........... directory, just as itr says in the "references"
Regards
0
Comment
Question by:howtodoit
[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
4 Comments
 
LVL 15

Accepted Solution

by:
Solar_Flare earned 250 total points
ID: 21766091
do you have the MySQL connector installed on the new machine?

you might also need to remove the reference and add it again with the new file location if the dll file's location is different on the new machine.


you can also copy the MySQL connector dll into the bin folder of your project.
0
 
LVL 18

Assisted Solution

by:philipjonathan
philipjonathan earned 250 total points
ID: 21767380
Seems like you have different version of MySql connector installed.
Easiest way to solve it is, find the Mysql.Data.dll in the Mysql connector installation folder on your development machine, and copy it together with your compiled exe files during the migration.
0
 

Author Comment

by:howtodoit
ID: 21771157
I moved the dll as suggested by philip and still cant compile, but the error has changed:

An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not load file or assembly 'MySql.Data, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
0
 
LVL 15

Expert Comment

by:Solar_Flare
ID: 21775199
install the MySql connector on the new machine, remove the reference to MySql from the project, then add it again, locating the MySql.Data.dll that was just installed.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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