如何在asp.net中连接到远程服务器中的MYSQL数据库

时间:2014-05-20 12:29:43

标签: mysql asp.net asp.net-mvc iis phpmyadmin

当我在远程服务器中运行我的asp.net应用程序时,它显示以下错误:

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.6.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
Source Error: 
Line 15:     <compilation debug="true" targetFramework="4.0">
Line 16:       <assemblies>
Line 17:         <add assembly="MySql.Data, Version= 6.6.6.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
Line 18:         <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 19:       </assemblies>
Source File: D:\Hosting\12557669\html\dev.caribou.in\asp\web.config    Line: 17
Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Data, Version=6.6.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' 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].

*

0 个答案:

没有答案