Solved

MySQL/.Net Connector problem

Posted on 2008-06-11
4
1,300 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
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
Solar_Flare earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

728 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

12 Experts available now in Live!

Get 1:1 Help Now