防御ODAC InstantClient的程序 [英] Program defensively against ODAC instantclient

查看:83
本文介绍了防御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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆