分享

Entity Framework发布到IIS报错

 新进小设计 2021-04-02

参考资料:https://www.cnblogs.com/mrma/p/5404584.html

报错信息

  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.

错误原因

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

解决方案

  •   可以按照参考链接里面的方法尝试。

  •   我按照链接里面的方式试了不怎么管用,就自己从插件文件夹里面或者其他项目的bin文件夹(需要其他项目先执行生成操作)拷贝到报错项目的发布文件夹

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多