"提供者是无法与Oracle客户端&QUOT的版本兼容;提供者、客户端、版本、QUOT

2023-09-06 06:02:44 作者:他城我做王

我只是把我的ASP .NET Web服务在远程主机上。该服务可访问我的本地机器上的Oracle数据库。该服务工作正常时,它是在本地主机上运行,​​但自从搬到远程居屋,我得到

I just put my asp .net web service on a remote host. The service accesses an oracle db on my local machine. The service worked fine when it was running on localhost but since moving to a remote hos, I get

The provider is not compatible with the version of Oracle client at
    Oracle.DataAccess.Client.OracleInit.Initialize() at
    Oracle.DataAccess.Client.OracleConnection..cctor()
--- End of inner exception stack trace --- at
    Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString) at....

我知道这个错误与服务器/客户端上运行的数据提供程序版本。以我为例,我在项目中所引用的唯一的DLL是Oracle.DataAccess

I know the error is related to the data provider version running on the server/client. In my case, the only dll I referenced in the project was Oracle.DataAccess

因此​​,我怎么去解决呢?请注意,我将无法更改虚拟主机比我自己的项目中的其他任何东西。

So how do I go about solving this? Note that I won't be able to change anything on the web host other than my own project.

我的本地机器上运行的Oracle 11g

My local machine is running Oracle 11g

感谢。

推荐答案

了解Oracle客户端的什么版本是您的虚拟主机的网站上运行。如果是老客户了,你要么需要

Find out what version of the Oracle client is running at your web host's site. If it's an old client you either need to

A) get your web host to update their software to something more up-to-date,
B) downgrade to an older version of Oracle that their client can deal with, or
C) change web hosts.

祝你好运。

 
精彩推荐
图片推荐