Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

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

Source Error:


Line 47:                <add assembly="CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
Line 48:                <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>-->
Line 49:         <add assembly="MySql.Data, Version=6.3.5.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
Line 50:         <add assembly="MySql.Data.Entity, Version=6.3.4.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
Line 51:                <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


Source File: C:\Inetpub\vhosts\smarttest.co.in\httpdocs\web.config    Line: 49

Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Data, Version=6.3.5.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Please help me to solve this problem.....
Posted

When this thing happens to me it is usually one out of two things:

Make sure that MySql.Data is present on the machine where you get the error. (It unbelievable how often a files turns out to be missing :-) )

If MySql.Data is a mixed mode (native and managed code) 32 bit DLL. And you executable specifies "Any CPU". On a 64 bit machine with 64 bit .NET this will fail with error message you got. A solution is to specify "x86" as target for the executable.
 
Share this answer
 
Comments
Manash Sahoo 27-Aug-12 7:25am    
MySql.Data is present in my machine and version is 6.3.5.0 and MySql.Data.Entity is 6.3.4.0 and My Machine is 32 bit .Please give me the solution so that i can able to rectify my error and able to host the application
Prasad_Kulkarni 27-Aug-12 8:17am    
+5
Manas Bhardwaj 27-Aug-12 8:35am    
thx
Could not load file or assembly 'MySql.Data, Version=6.3.5.0, Culture=neutral
Make sure the above mentioned assembly (of exact same version) exists on the webserver where you are trying to host it. Assembly expected is missing for the application and hence the error.
 
Share this answer
 

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