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目录下

    漫思
  • 相关阅读:
    Gym
    Gym
    Gym 101147B
    巴什博弈入门
    Hihocode 1304
    hihocoder 1441
    web前端
    ajax json html 结合
    关于获取各种浏览器可见窗口大小:
    原生JS 购物车及购物页面的cookie使用
  • 原文地址:https://www.cnblogs.com/sexintercourse/p/14325837.html
Copyright © 2011-2022 走看看