I built an online login program which connects to my online MySQL db. In my application i have used the MySQL.Data file as a reference since the program needed the file to connect to the online MySQL server. Now my question; when I take my program from ‘C:\Users\User\Documents\Visual Studio 2010\Projects\MYPROJECT\MYPROJECT\bin\Debug’ and copy that file to a completely other computer, I get an error message saying that the MySQL.Data file is missing. I want to know how I can include the MySQL.Data file in my project compile. If you need further details I am happy to provide them.
Share
In the Solution Explorer of your project, you have the point References, where the
MySql.Data.dllshould occur. Right-click it and select Properties, and in the Properties make sure that Copy Local is set toTrue.Then, the
MySql.Data.dllfile will always be copied to yourbin/Debugfolder.If you deploy your program, you have to copy that dll, too. Then everything will work on the other computer.