zoukankan      html  css  js  c++  java
  • 'System.Data.SqlClient' could not be loaded解决办法

    现象:

    The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application.

    引用: 高人dudu 的回复

    这是一个误导人的错误信息,实际是因为找不到 EntityFramework.SqlServer.dll 文件。

    问题背景是web项目所引用的项目中安装了EF的nuget包,而web项目本身没有安装。于是build后,web项目的bin文件夹中只有EntityFramework.dll,却没有EntityFramework.SqlServer.dll。

    解决方法:web项目也安装Entity Framework的nuget包。

    把所引用的项目中安装了EF的nuget包的bin目录下的EntityFramework.SqlServer.dll 文件复制到Web项目中的bin目录下

    漫思
  • 相关阅读:
    模板方法模式
    组合模式
    JS API文档
    支持 @connect写法
    PHP word导入题库
    go 复制文件和创建目录
    go文件写入
    go 文件读取
    gin连接mysql数据库
    gin多数据格式返回结果
  • 原文地址:https://www.cnblogs.com/sexintercourse/p/14325837.html
Copyright © 2011-2022 走看看