Entity Framework发布到IIS报错

参考资料:http://www.javashuo.com/article/p-egiolvgb-mc.htmlhtml

报错信息

  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. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.app

错误缘由

  项目发布后 EntityFramework.SqlServer.dll文件和 EntityFramework.SqlServer.xml文件没有生成到发布文件夹。ide

解决方案

  •   能够按照参考连接里面的方法尝试。
  •   我按照连接里面的方式试了不怎么管用,就本身从插件文件夹里面或者其余项目的bin文件夹(须要其余项目先执行生成操做)拷贝到报错项目的发布文件夹
相关文章
相关标签/搜索