Ramakrishna
Ramakrishna

Reputation: 203

Could not load file or assembly 'MySql.Data, Version=6.3.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies

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

enter image description here

Upvotes: 0

Views: 5036

Answers (1)

cjk
cjk

Reputation: 46475

The DLL either needs to be in the bin folder of the application (or in the same folder) or needs to be installed to the GAC.

Does the MySql DLL come with an installer?

--

This can also happen when the referenced DLL is built with a later version of .Net than the application that is calling it.

Upvotes: 3

Related Questions