“提供程序与Oracle客户端版本不兼容”
问题描述:
我只是将我的asp.net网络服务放在远程主机上。该服务访问本地机器上的一个oracle数据库。这项服务工作得很好,当它在本地主机上运行,但自从搬到远程居屋,我得到“提供程序与Oracle客户端版本不兼容”
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
那么我该如何解决这个问题?请注意,除了我自己的项目外,我无法更改网络主机上的任何内容。
我的本地机器运行Oracle 11g
谢谢。
答
找出哪个版本的Oracle客户端正在您的虚拟主机的网站上运行。如果是老客户,您需要
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.
祝您好运。