Solved

MySQL/.Net Connector problem

Posted on 2008-06-11
4
1,340 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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