您的位置:首页 > 数据库

ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded

2015-10-30 15:41 513 查看

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的引用,在引用EF类库时,如果只引用EntityFramework不引用EntityFramework.SqlServer的话就会遇到这样的错误,所以这个问题的解决方案就是:添加对 EntityFramework.SqlServer.dll 的引用即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: