Click here to Skip to main content
15,175,525 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i hosted a web application with Asp.net with was wrriten in Vb ,and the backend is MySQL database ,it works fine on my development system ,but when i upload is to my Host i get the following error message

Could not load file or assembly 'MySql.Data, Version=5.1.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

with sub section of the error has which i think comes from the web config

XML
Line 32:         <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 33:         <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 34:         <add assembly="MySql.Data, Version=5.1.7.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
Line 35:       </assemblies>
Line 36:     </compilation>


please i really need to get this over
thanks
Posted

1 solution

Copy the Mysql.Data.dll to the bin directory of your web application on the server.
   
Comments
chidozie 1-Jul-12 11:21am
   
Thanks this has solved my problem
AshishChaudha 1-Jul-12 13:30pm
   
Good answer.my 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900