简体   繁体   English

具有不变名称“Oracle.DataAccess.Client”的 ADO.NET 提供程序未注册或无法加载

[英]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.要使用它,您必须将它安装在您的机器上,以便可以找到该程序集。

  • Reference ODP.NET (Oracle.ManagedDataAccess.EntityFramework) from NuGet从 NuGet 参考 ODP.NET (Oracle.ManagedDataAccess.EntityFramework)
  • using namespace使用命名空间
  • then rebuild your project然后重建你的项目

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.

相关问题 使用MySQL,具有不变名称&#39;MySql.Data.MySqlClient&#39;的ADO.NET提供程序未在计算机或应用程序配置文件中注册 - Using MySQL the ADO.NET provider with invariant name 'MySql.Data.MySqlClient' is either not registered in the machine or application config file 没有为ADO.NET提供程序找到具有不变名称“System.Data.SqlClient”的实体框架提供程序。 - No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. 具有不变名称&#39;System.Data.SqlClient;&#39;的ADO.NET提供程序 无法找到(实体框架MVC) - ADO.NET provider with invariant name 'System.Data.SqlClient;' cannot be found (Entity Framework MVC) 实体框架错误:未找到具有不变名称&#39;System.Data.SqlClient&#39;的ADO.NET提供者的实体框架提供者 - Entity Framework error: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient' Windows 2012 SERVER - 找不到具有不变名称“System.Data.SqlClient”的ADO.NET提供程序的实体框架提供程序 - Windows 2012 SERVER - No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient' 使用Oracle.DataAccess.Client; 下载并安装OPD.NET后找不到 - using Oracle.DataAccess.Client; not found after download and install OPD.NET 使用C#进行BulkCopy错误-Oracle.DataAccess.Client - Error BulkCopy with C# - Oracle.DataAccess.Client 在运行时设置oracle.dataaccess.client设置的DllPath值 - set DllPath value of oracle.dataaccess.client settings at runtime Oracle.DataAccess.Client.OracleException ORA-01008:并非所有变量都绑定在Oracle.DataAccess.Client上 - Oracle.DataAccess.Client.OracleException ORA-01008: not all variables bound at Oracle.DataAccess.Client 请求的数据库在连接字符串中没有设置有效的ADO.NET提供程序名称 - The requested database does not have a valid ADO.NET provider name set in the connection string
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM