Last post Dec 18, 2013 10:15 AM by AidyF
Dec 18, 2013 09:00 AM|Akki_2610|LINK
Hi, I am using MySql.dll in my ASP.Net Application to connect to MySQL server.
I Add reference of that DLL in my project and run that. Its Working fine.
But when i publish same on a Server, it gives following error:
Could not load file or assembly 'MySql.Data, Version=22.214.171.124, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
What do i do?
Dec 18, 2013 09:04 AM|AidyF|LINK
Make sure the dll exists in the "bin" folder along with your site assembly, and also make sure any dll it relies on is also included. In this it looks like you're missing thr MySql.Data dll
Dec 18, 2013 09:08 AM|Akki_2610|LINK
I copied DLL file from my Local to Server's Bin Folder and its working!!
BTW, is there any way that i dont always have to copy-paste DLL on server's Bin folder everytime?
Dec 18, 2013 10:15 AM|AidyF|LINK
If you use VisualStudio's "Publish" option and publish it direct to a folder on your hard drive (which is called a File publish), it will; contain all the files you need to upload to your remote server, including all needed DLLs.