Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to resolve this issue

Could not load file or assembly 'MySql.Data, Version=6.3.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

The site is running good in local host but when publishing the site and checking i am getting the error. Can any one give me a solution for this..

My sample image from Assembly folder

http://i.stack.imgur.com/4mnGw.png[^]
Posted
Comments
BoxyBrown 12-Aug-11 4:57am    
Where you publish site? on the same machine or another?

Copy your MYSql related files from GAC to your BIN folder.

http://blog.weareon.net/copy-files-from-gac/[^]
 
Share this answer
 
install mysql .net dataprovider on server where you publish.
 
Share this answer
 
Comments
demouser743 12-Aug-11 5:23am    
I already installed in my PC
Herman<T>.Instance 12-Aug-11 5:45am    
I said: on server! not in your pc
santosh.avudari 12-Mar-14 4:36am    
hi everyone , we have hosted our files in plesk server, i explained to server side executive but they are not understanding. They are giving below solution.
Please note that .net files have to be hosted in the httpdocs folder.
You must use the same folder structure as in the server while building your .net application.
All your dll files must be placed in bin folder.
web.config has to be placed in httpdocs folder.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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