oracle程序兼容问题吗,提供程序与Oracle客户端的版本不兼容

提供程序与Oracle客户端的版本不兼容

我试着用Oracle ODP.NET 11g(11.1.0.6.20)即时客户端将我的ASP.NET项目作为数据提供者但是当我运行aspx页面时,我会得到一个“提供程序与Oracle客户端的版本不兼容“错误信息。任何帮助都将不胜感激。

我在VisualStudio 2005中引用了数据提供程序,后面的代码如下所示:using Oracle.DataAccess.Client;..OracleConnection oOracleConn = new OracleConnection();oOracleConn.ConnectionString =

"Data Source=MyOracleServerName;" +

"Integrated Security=SSPI";oOracleConn.Open();//Do SomethingoOracleConn.Close();

页面的错误如下所示:Exception Details: Oracle.DataAccess.Client.OracleException: The provider is not compatible with the version of Oracle clientSource Error: Line 21: Line 22: Line 23:             OracleConnection oOracleConn = new OracleConnection();Line 24:             oOracleConn.ConnectionString =Line 25:                 "Data Source=MyOracleServerName;" +[OracleException (0x80004005): The provider is not compatible with the version of Oracle client]

Oracle.DataAccess.Client.OracleInit.Initialize() +494

Oracle.DataAccess.Client.OracleConnection..cctor() +483Stack Trace: [TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception.]

Oracle.DataAccess.Client.OracleConnection..ctor() +0

Boeing.IVX.Web.RoyTesting.Page_Load(Object sender, EventArgs e) in C:\Documents and Settings\CE218C\Desktop\IVX.Net\Web\IVX\RoyTesting.aspx.cs:23

System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15

System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33

System.Web.UI.Control.OnLoad(EventArgs e) +99

System.Web.UI.Control.LoadRecursive() +47

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值