MySQL错误 [英] MySQL Error

查看:73
本文介绍了MySQL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我只是部署了一个asp.net网站,却收到此错误;

Hello all I just deploy an asp.net web site and i got this error;

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

推荐答案

我认为此错误有一些原因:

1)检查服务器上GAC(在驱动器名称:\ WINDOWS \ assembly中)或(Web服务的bin文件夹中)是否存在MySql.Data.

2)您缺少此DLL.您应该将其放在应用程序的bin目录中.

3)可能是您想要的MySql客户端与服务器上安装的客户端之间的版本冲突.您可以将以下部分添加到web.config文件中,并指定正确的版本/公钥:

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 />



尝试在IIS服务器上重新安装mysql-connector-net-5.2.7.0以解决该问题.

请投票给答案(如果有帮助的话).



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).


这篇关于MySQL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆