When I execute my stand alone program it crashes and says:
Exception: System.IO.FileNotFoundException: cannot find assembly or file Mysql.Data or load one of the dependable sources at project3.class.executesend<> at project3.class.initialize<> at project3.class.main<>
After some searching I found out that I should add those .dll files as resources with the program. After I did that, it produced the same error.
How can I fix this?
You added Mysql.Data in your project’s references folder, if I understood well.
Now, right click on this in VS Explorer, go to properties, and set Attribute “Copy Local” to true.
So it will be copied in the “debug” or “release” folder whenever you build your app.