ORACLE和实体框架。错误:指​​定的存储提供不能在配置中找到或无效能在、实体、框架、错误

2023-09-04 01:08:21 作者:温柔痞子

在我的项目,我使用的是Oracle我的机器我的开发机Win7和我的服务器win2008r2我安装了Oracle测试实体框架和.NET 4.0框架和实体框架together.Both。

In my project I am using oracle and entity framework together.Both of my machines my developer machine win7 and my server win2008r2 I installed oracle beta entity framework and .net 4.0 framework.

不过我的项目适用于本地计算机,不服务器给予错误的工作:

However my projects works on local machine and does not work on server giving the error :

the specified store provider cannot be found in the configuration or is not valid 
SystemArgumentException unable to find the requested .net Framework data provider ...

任何人都可以帮我吗?

Anyone can help me ?

推荐答案

总之:不要使用ODAC .NET驱动程序,而不是使用Oracle客户端完成安装。 修改ODAC组件可能有点diffucilt。因此,安装Oracle客户端的最新版本,所有的机器都很好。

in short: do not use ODAC .net drivers, instead use oracle client complete installation. modifying ODAC components may be a bit diffucilt. So install latest version of oracle client to all machines everything is well.

在旧的答案 - 对于这两种机器我安装了第一个Oracle数据提供.NET和Oracle将测试实体框架供应商。因此,对于这两种机器我有多个Oracle客户端实例。 old answer - For both machines I installed first oracle data provider for .net and then oracle beta entity framework providers . So for both machines I have multiple oracle client instances.

在我的机器的Oracle测试实体框架是配置为默认客户端。 - 我不知道什么时候/它是如何改变了/谁改变了 -

In my development machine oracle beta entity framework is configured as default client. -I dont know when/how it changed/ who changed -

在服务器默认的提供者还是老odp.net。

In server default provider is still old odp.net .

更改默认提供者在服务器上的Oracle测试实体框架供应商后,它改变了。

After changing the default provider at server to oracle beta entity framework provider it changed.

再次感谢。