码迷,mamicode.com
首页 > 数据库 > 详细

EntityFrame Work:No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

时间:2016-08-06 17:16:56      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:

今天试着学习了Entity Frame Work遇到的问题是

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.  

技术分享

配置文件如下:

技术分享

解决方法:

1.右键解决方案,选择Manage NuGet Packages for Solution...

技术分享

2.选择项目重新安装EntityFrameWork

技术分享

 

参考网址:http://stackoverflow.com/questions/21641435/error-no-entity-framework-provider-found-for-the-ado-net-provider-with-invarian

 技术分享

 

 

如果还有问题:

Entity Framework The underlying provider failed on Open

 可以试试:http://stackoverflow.com/questions/18271301/entity-framework-the-underlying-provider-failed-on-open

技术分享

检测数据库连接字符串是否有问题!

EntityFrame Work:No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

标签:

原文地址:http://www.cnblogs.com/andayhou/p/5744422.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!