I am trying to run a .Net application's .exe file from bin/Debug folder but it gives me an error like
Cannot load file or assembly "Mysql.Data version=6.2.2.0",culture=neutral publicKeyToken=c5.... or one of its dependencies.The system cannot find the fi开发者_JAVA百科le specified"
I haven't worked on .Net before can anyone help ???
It tells you the problem; it can't find Mysql.Data.dll
. There are two (main) ways it can get this:
- installed into the GAC (a pain to do, frankly)
- in the same folder (bin/Debug in this case)
to achieve the latter, simply expand "references" in the solution explorer, find Mysql.Data
, and then (in the properties pane) ensure "Copy Local" is set to "True". Then rebuild, and the file should appear.
maybe you need to install the mysql connector. it also intalls everything you need into the gac.
you can download it here http://www.mysql.com/downloads/connector/net/6.3.html#downloads
cheers
精彩评论