Link to home
Start Free TrialLog in
Avatar of howtodoit
howtodoit

asked on

MySQL/.Net Connector problem

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
ASKER CERTIFIED SOLUTION
Avatar of Solar_Flare
Solar_Flare

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of howtodoit
howtodoit

ASKER

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)
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.