当前位置:   article > 正文

System.InvalidOperationException:“The Entity Framework provider type ‘System.Data.Entity.SqlServer.S_system.invalidoperationexception:鈥淭he entity frame

system.invalidoperationexception:鈥淭he entity framework provider type 'syste

错误的相信信息如下描述:

An exception of type ‘System.InvalidOperationException’ occurred in mscorlib.dll but was not handled in user code
Additional information: 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.

截图如下

查看项目引用,发现少了对应的DLL

查看bin目录下,确实少了DLL文件

解决方法:只添加 EntityFramework.SqlServer.dll 即可

————————————————
版权声明:本文为CSDN博主「微微微微风!」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_39797713/article/details/114015887

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/人工智能uu/article/detail/891896
推荐阅读
相关标签
  

闽ICP备14008679号