我只是将我的asp .net web服务放在远程主机上。该服务访问本地计算机上的oracle db。当它在localhost上运行时,该服务运行正常但是由于转移到远程主机,我得到了
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
那么我该如何解决这个问题呢?请注意,除了我自己的项目之外,我将无法更改Web主机上的任何内容。
我的本地计算机正在运行Oracle 11g
感谢。
答案 0 :(得分:1)
了解您的Web主机站点上运行的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.
祝你好运。