Hey Guys,
I am pretty new to assembling an application, but fairly used to coding.
Anyways, I have finished coding my app and it interfaces with a MySQL DB. When
I build the app I get a .exe which I am expecting. However, when I run it on
another machine I get a MySQL.Data assembly error. Based on the research that I
did it is because it is missing the MySQL.data.dll at runtime. Is there a way
to build this dll into my exe? If so, what is the procedure? If not, then how
do I go about getting this into my app? When all is said and done I want to be
able to push out one exe that will preferable be able to run on its own without
being installed. If necessary though, I can make an install package and
distribute that.
Oh, wise ones.......please come to my rescue. ;)
Thanks in advance....
Loading
Sandip PatilPosted Nov 13, 2007, 12:17 PM
Hi,
When adding reference to project for MySQL.Data.DLL, click on properties of reference & set property "Copt Local" to True & Rebuild complete solution.
This will most probably solve your problem. It could be situation that one COM DLL is calling another few COM DLLs. If that’s case with MySQL.Data.DLL, then you also need to install MySQL runtime on another machine.
Thanks