System.data.oracleclient需要oracle客户端软件版本8.1.7或更高版本'

问题描述:

我们正在开发WCF服务,我们使用oracle.clinet来连接数据库,它通过本地主机上的代码发生,当我们发布服务时,我们错误System.Data.OracleClient需要Oracle客户端软件版本8.1.7或更大。我们不知道出了什么问题



我的尝试:



我们已经安装并重新安装了客户端,使用目标CPU作为X86,任何CPU编译并使用应用程序。尝试将框架工作更改为4.5

we are developing WCF service where we use oracle.clinet to cnnect the db and it happens through code on local host where as when we publish the service we the error System.Data.OracleClient requires Oracle client software version 8.1.7 or greater’. we are clue less what has gone wrong

What I have tried:

we have uinstalled and reinstalled te client, complied and bulid the application using target CPU as X86,Any CPU. tried changing the frame work to 4.5

错误消息非常明显。您必须安装Oracle Client 8.1.7或更高版本才能使用System.Data.OracleClient命名空间中的类。



但是,因为这些东西已被弃用,您最好安装和重写代码以使用 ODP.NET库 [ ^ ],其中本身需要安装Oracle客户端。
The error message is pretty obvious. You have to have Oracle Client 8.1.7 or greater installed in order to use the classes in the System.Data.OracleClient namespace.

But, since that stuff is deprecated, you would be better off installing and rewriting the code to use one of the ODP.NET library[^], which itself will require an installation of the Oracle Client.