Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello all I just deploy an asp.net web site and i got this error;

XML
Server Error in '/ universoterapeutico' Application.
Configuration Error Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. 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. 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=5.2.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. Parser Error Message: Could not load file or assembly 'MySql.Data, Version = 5.2.7.0, Culture = neutral, PublicKeyToken = c5687fc88969c44d' or one of ITS dependencies. The system cannot find the file specified. The system can not find the file specified.
Source Error: Source Error:
Line 42:     <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> Line 42: <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
 Line 43:     <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> Line 43: <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
 Line 44:     <add assembly="MySql.Data, Version=5.2.7.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/></assemblies> Line 44: <add assembly="MySql.Data, Version=5.2.7.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/> </ assemblies>
 Line 45:   </compilation> Line 45: </ compilation>
 Line 46:   <!-- Line 46: <! -

Source File: e:\home\chsoft\Web\universoterapeutico\web.config Line: 44 Source File: e: \ home \ chsoft \ Web \ universoterapeutico \ web.config Line: 44
Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Data, Version=5.2.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' could not be loaded. Assembly Load Trace: The following information helpful to Can Be determine why the assembly 'MySql.Data, Version = 5.2.7.0, Culture = neutral, PublicKeyToken = c5687fc88969c44d' could not be loaded.
 WRN: Assembly binding logging is turned OFF. 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. 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. 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]. To turn this feature off, remove the registry value [HKLM \ Software \ Microsoft \ Fusion! EnableLog].

Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016 Version Information: Microsoft. NET Framework Version: 2.0.50727.4200; ASP.NET Version: 2.0.50727.4016

Se alguém puder me ajudar ficarei muito grato. If anyone can help me be grateful

.

Please how can i solve it
Posted

1 solution

I Think There are some reasons for this error:

1) Check whether the MySql.Data exist in the GAC (In Drive Name:\WINDOWS\assembly) or (the web service's bin folder) on the server.

2) You are missing this DLL. You should look at putting it in the bin directory of your application.

3) May be version conflict between the MySql client you want and what is installed on the server. You can add the following section to your web.config file and specify the proper version/public key :

<br />
<compilation debug="false"><br />
 <assemblies><br />
 <add assembly="MySql.Data, Version=5.2.7.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D "/><br />
    </assemblies><br />
</compilation><br />
<br />


try to re-installing the mysql-connector-net-5.2.7.0 on the IIS server to resolve the issue.

Please vote for answer (if it is useful).
 
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