locked
making dll available at server RRS feed

  • Question

  • User755073946 posted

    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=5.0.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

    What do i do?

    Wednesday, December 18, 2013 9:00 AM

Answers

  • User-760709272 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 18, 2013 9:04 AM
  • User-760709272 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 18, 2013 10:15 AM

All replies

  • User-760709272 posted

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 18, 2013 9:04 AM
  • User755073946 posted

    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?

    Wednesday, December 18, 2013 9:08 AM
  • User-760709272 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 18, 2013 10:15 AM