[英]The ADO.NET provider with invariant name 'Oracle.DataAccess.Client' not registered or could not be loaded
When I try to open my edmx file in my Asp.Net web application this error show up:当我尝试在我的 Asp.Net Web 应用程序中打开我的 edmx 文件时,会出现此错误:
Severity Code Description Project File Line Suppression State Error Error 175: The ADO.NET provider with invariant name 'Oracle.DataAccess.Client' is either not registered in the machine or application config file, or could not be loaded.严重性代码描述项目文件行抑制状态错误 175:具有不变名称“Oracle.DataAccess.Client”的 ADO.NET 提供程序未在计算机或应用程序配置文件中注册,或者无法加载。 See the inner exception for details.
有关详细信息,请参阅内部异常。
Another edmx file, which is connected to Sql Server, doesn't have problem, opens without any errors.另一个连接到 Sql Server 的 edmx 文件没有问题,打开时没有任何错误。
ODP.NET Managed provider is from Oracle. ODP.NET 托管提供程序来自 Oracle。 To use it you must have it installed on your machine so that the assembly can be found.
要使用它,您必须将它安装在您的机器上,以便可以找到该程序集。
In my case it is was a duplicate of invariant name in machine.config after installation of ODP.NET.在我的情况下,它是安装 ODP.NET 后 machine.config 中不变名称的副本。
Solution Ι found in web.config to the start of system.data > DbProviderFactories add following line解决方案 Ι 在web.config中找到system.data > DbProviderFactories的开头添加以下行
<remove invariant="Oracle.DataAccess.Client"></remove>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.