微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

尝试使用 MySQL Connector for .NET 时,我的 Web.config 文件中的错误在哪里?

如何解决尝试使用 MySQL Connector for .NET 时,我的 Web.config 文件中的错误在哪里?

我正在使用 Visual Studio 创建一个 MVC 应用程序。我正在尝试使用 MysqL Connector for .NET 与 AWS 上的数据库进行通信。我按照 MysqL 文档中的说明进行操作,但仍然出现此错误

system.invalidOperationException: 'The DbConfiguration type 'MysqL.Data.Entity.MysqLEFConfiguration,MysqL.Data.EntityFramework' specified in the application config file Could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application.

这是 部分:

  <system.data>
    <DbProviderFactories>
      <remove invariant="MysqL.Data.MysqLClient" />
      <add name="MysqL Data Provider" invariant="MysqL.Data.MysqLClient" description=".Net Framework Data Provider for MysqL" type="MysqL.Data.MysqLClient.MysqLClientFactory,MysqL.Data" />
    </DbProviderFactories>
  </system.data>

我没有指定版本或密钥,因为我发现的所有示例都有不同的编号。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。