Windows.Form c# how to resurrect a form?
Good time of day. There is a need to change the form, but when I try gives an alert "could Not load file or Assembly "MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" or one of its dependencies. The system cannot find the file specified. ". If nothing is done, then it works, but if you try to fix something, the entire system crash with the same phrase "failed to load file or Assembly "MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" or one of its dependencies. The system cannot find the file specified. ". The reason is known, what is a crank corrected in the code that are described by the designer as to track and fix this "damage" ?
3 answers
install via the console VS
Install-Package MySql.Data -Version 6.8.3
or just in the command line
nuget Install MySql.Data -Version 6.8.3
and then handles specify in the project the Assembly reference.
Here is the code, it deleted the library, download the MySQL Connector for .NET, where the library is.
If some freak did something right and everything is broken - you need to start using version control systems(any git,svn,tfs,hg - absolutely do not care).
If your program shouts that fails to load any Assembly :
1) should be build
2) understand where she is looking for her
3) examined whether it is necessary generally
4) the correct link or reinstall the required packages( Yes, it is better to use nuget than kopirnut a reference and poke the program in place where it is)
Find more questions by tags .NETC#