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

    漫思
  • 相关阅读:
    PyQT_Group
    单例模式演示-1-39-07
    RSqlBuilder
    RExcel
    RJson
    NodeJs开发目录
    NodeJs事件驱动
    NodeJs实用工具util
    NodeJs之global,process
    NodeJs两个简单调试技巧
  • 原文地址:https://www.cnblogs.com/sexintercourse/p/14325837.html
Copyright © 2011-2022 走看看