找不到具有不变名称'System.Data.SqlClient'的ADO.NET提供程序的实体框架提供程序异常发生 [英] No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient' Exception occure

查看:132
本文介绍了找不到具有不变名称'System.Data.SqlClient'的ADO.NET提供程序的实体框架提供程序异常发生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找不到具有不变名称'System.Data.SqlClient'的ADO.NET提供程序的实体框架提供程序当我尝试在iis上运行应用程序时出现此错误,

但它在VS2013中运行

No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient' i got this error when i try run application on iis,
but it's run in VS2013

推荐答案

似乎实体框架包不匹配。另一个问题可能是.config文件缺少一些必要的配置参数。解决这个问题的最简单方法是重新安装nuget包,如果实体框架(所需版本)。这将解决版本不匹配问题,并在配置文件中添加所需的参数。
It seems the entity framework package mismatch. Another problem could be that the .config file is missing some essential configuration paramters. The easiest way to fix this would be to reinstall the nuget package if entity framework (desired version). This will fix the version mismatch problem and also add the needed parameters in the config file.


这篇关于找不到具有不变名称'System.Data.SqlClient'的ADO.NET提供程序的实体框架提供程序异常发生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆