Can not obtain Oracle client information from registry

当在64位系统上安装32位Devart驱动程序和32位Oracle客户端时,可能会遇到连接Oracle的问题。解决方案是确保.NET应用程序的构建选项设置为X86,而非默认的AnyCPU。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

       "Can not obtain Oracle client information from registry. Make sure that Oracle Client Software is installed, or use Direct mode of connecting to server."在使用 Devart访问Oracle的时候,突然conn无法open了,报出这个错误,原因是把编译环境给由4.5更换为2.0后引起的,切换回去后也不行了,一直百思不得其解,后来google到原因了。具体解决方式见下:This problem comes to the surface when you have installed a 32-bit Devart driver together with the 32-bit Oracle client on a 64-bit system.

When you have this combination, you need to make sure the build options of your .NET application/unit test is set to X86. By default, the build option will be set to AnyCPU. If this is the case, you will receive the above error.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值