【发布时间】:2015-01-19 09:27:57
【问题描述】:
这里的问题是我在本地机器上安装了Mysql 6.9.5,它在本地机器上运行良好,但是在托管在实时服务器上后,我收到如下错误。
错误信息
Could not load file or assembly 'MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
Web.config
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
<add assembly="MySql.Web, Version=6.9.5.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
</assemblies>
</compilation>
<httpRuntime/>
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="MySql.Data" publicKeyToken="C5687FC88969C44D" culture="neutral" />
<bindingRedirect oldVersion="5.5.32" newVersion="6.9.5.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<appSettings>
<add key="karmadbeConnection" value="server=*.*.*.*;User ID=*;Password=*;database=*;persist security info=False"/>
</appSettings>
</configuration>
服务器说明
mysql 5.5.32version 安装在 easycgi 服务器上。我希望服务器托管存在版本问题。但没有得到任何解决方案。
如果有人有任何解决方案或建议,那将是可以接受的。提前谢谢。
【问题讨论】:
-
mysql.data.dll 是否位于 bin 文件夹中?
-
是的 mysql.data.dll
标签: c# mysql asp.net web-hosting