无法加载文件或程序集“MySql.Data,Version=6.8.3.0”或其依赖项之一。系统找不到指定的文件

无法加载文件或程序集“MySql.Data,Version=6.8.3.0”或其依赖项之一。系统找不到指定的文件,mysql,asp.net,vb.net,Mysql,Asp.net,Vb.net,每次我尝试将我的网站上传到服务器时,都会遇到这个配置错误,在本地主机上运行良好 Could not load file or assembly 'MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified. Line 18: <compilatio

每次我尝试将我的网站上传到服务器时,都会遇到这个配置错误,在本地主机上运行良好

 Could not load file or assembly 'MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

Line 18:   <compilation strict="false" explicit="true" targetFramework="4.0" debug="true">
Line 19:       <assemblies>
Line 20:         <add assembly="MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
Line 21:         <add assembly="MySql.Web, Version=6.8.3.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
Line 22:       </assemblies>
我曾尝试将dll复制到bin,但没有成功,我删除了引用并在VS2013中读取,重建了项目,访问GAC并从那里复制…但所有这些都不起作用。任何人对下一步的尝试有任何建议,来自web配置的代码如下

<configuration>
  <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" />
                <bindingRedirect oldVersion="0.0.0.0-6.3.7.0" newVersion="6.8.3.0" />
            </dependentAssembly>
        </assemblyBinding>
</runtime>
  <system.web>

    <customErrors mode="Off"/>
    <compilation strict="false" explicit="true" targetFramework="4.0" debug="true">
      <assemblies>
        <add assembly="MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
        <add assembly="MySql.Web, Version=6.8.3.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
      </assemblies>
    </compilation>
    <httpRuntime/>
  </system.web>
  <system.data>
  <DbProviderFactories>
    <add name="MySQL Data Provider" 
         invariant="MySql.Data.MySqlClient" 
         description=".Net Framework Data Provider for MySQL"  
         type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, PublicKeyToken=c5687fc88969c44d" />
  </DbProviderFactories>
</system.data>
  <connectionStrings>
    <add name="MainConnectionString" connectionString="Server=xxxxxxx;Initial Catalog=Main;Persist Security Info=True;UID=xxxxx;Password=xxxxxxx" providerName="System.Data.SqlClient"/>
  </connectionStrings>
    </configuration>

我不确定这是否对你有帮助,但我只是有一个类似的问题。
在解决方案资源管理器中的mysql.data.dll上单击鼠标右键并选择“包含在项目中”后,它将在我的web服务器上工作……当然,在重新发布后,请确保在项目的绑定文件夹或web服务器的GAC中部署mysql.data.dll。

您可以在