防御ODAC InstantClient的程序 [英] Program defensively against ODAC instantclient
问题描述
我正在尝试通过xcopy复制即时客户端并在global.asax.cs中为ORACLE_HOME和PATH设置环境变量来将oracle客户端隔离到应用程序,如此处,但仍然得到
I'm trying to isolate the oracle-client to the application by xcopying the instantclient and setting environment-variables for ORACLE_HOME and PATH in global.asax.cs as described here and here, but still get [OracleException (0x80004005): The provider is not compatible with the version of Oracle client]
when running on the server. Is there some way to programmatically check client and provider to give a more descriptive error-message?
编辑 这篇文章是一个开始.它列出了导致错误的三个原因.
EDIT This post has a start. It lists three causes for the error.
推荐答案
使用托管的oracle客户端(现在可用),那么这个问题就无关紧要了.
Use the managed oracle-client which is available now, then this question is irrelevant.
这篇关于防御ODAC InstantClient的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!