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文件夾(須要其餘項目先執行生成操做)拷貝到報錯項目的發佈文件夾
相關文章
相關標籤/搜索