Click here to Skip to main content
15,922,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Could not load file or assembly 'MySql.Data, Version=6.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

How to fix it ?
Posted

Install MySql on the PC. Don't forget the MySql Connector DLL!

See here[^]
 
Share this answer
 
 
Share this answer
 
Install the last mySql Connector for DotNet.

Download MySql Connector 6.3

When build the project make sure that the connector dlls are copied in the output directory.
(In the solution explorer, open References tree.
select the mysql dll and with the left mouse button select property.
In the Property set the "Copy locally" filed on True )

That's all :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900