mysql - 在我的服务器上说 "Could not load file or assembly ' MySql.Web ...“但我的应用程序中有 mysql

标签 mysql .net-assembly

    Parser Error Message: Could not load file or assembly 'MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

...

    Line 240:      <providers>
    Line 241: <add name="MySQLMembershipProvider" type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=6.7.4.0, 

.....

已解决将标签放在 web.config 文件中的以下行:

<remove name="MySQLMembershipProvider"/>

我无权访问服务器设置来删除 mysql。但是还有另一种不会再次发生的解决方法吗?

最佳答案

我在将网站部署到服务器时收到此错误(但在调试时没有)。

要修复它,选择 References -> MySql.Data 并将 Copy Local 参数 设置为 True。当部署在服务器上时,您可以通过 bin 文件夹中的 MySql.Data.dll 来验证这一点。

关于mysql - 在我的服务器上说 "Could not load file or assembly ' MySql.Web ...“但我的应用程序中有 mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21035396/

相关文章:

c# - 使用Mono.cecil修改程序集后出现 "System.IO.FileNotFoundException"错误

php mysql 共享数据到mysql

mysql查询根据时间戳排列四个表中的数据

c# - 在不加载它的情况下获取程序集中的字符串

c# - 反编译导致错误CS1112,汇编困惑

c# - 如何通过.resources.dll停止扫描

php - 如何在选定的 $variable 中创建 href 链接

mysql - 如何在 CodeIgniter 中组合 mysql 查询

mysql - Yii2 只运行特定的迁移

.net - 访问新签名的第三方 DLL 出错