dotConnect for Oracle on x64 Windows with x86 Oracle Client

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
patrasch79
Posts: 10
Joined: Sat 01 Dec 2012 08:53

dotConnect for Oracle on x64 Windows with x86 Oracle Client

Post by patrasch79 » Thu 11 Feb 2016 13:18

Hello!

I am using OCI.
dotConnect for Oracle on x64 Windows with x86 Oracle Client says:

System.InvalidOperationException: Cannot obtain Oracle Client information from registry. Make sure that Oracle Client Software is installed, or use the Direct mode when connecting to server.
bei Devart.Data.Oracle.OracleHomeCollection.a()
bei Devart.Data.Oracle.OracleInternalConnection..ctor(s connectionOptions, OracleInternalConnection proxyConnection)
bei Devart.Data.Oracle.ay.a(ab A_0, Object A_1, DbConnectionBase A_2)


x64 Oracle-Client works. Can't i use x86 Oracle Client?

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: dotConnect for Oracle on x64 Windows with x86 Oracle Client

Post by Pinturiccio » Mon 15 Feb 2016 13:28

patrasch79 wrote:Can't i use x86 Oracle Client?
Yes, you can. The bitness (x86 or x64) of your application and the bitness of your Oracle Client must be the same.

If your application is x86, Oracle Client must also be x86. If your application is executed as an x64 application, Oracle Client also must be x64. Thus, in order to use an x86 Oracle Client, you should set Platform target property value to x86 in your project properties.

patrasch79
Posts: 10
Joined: Sat 01 Dec 2012 08:53

Re: dotConnect for Oracle on x64 Windows with x86 Oracle Client

Post by patrasch79 » Mon 15 Feb 2016 16:03

So "Any CPU"-Configuration will not work?

Pinturiccio
Devart Team
Posts: 2420
Joined: Wed 02 Nov 2011 09:44

Re: dotConnect for Oracle on x64 Windows with x86 Oracle Client

Post by Pinturiccio » Tue 16 Feb 2016 13:28

Application with the "Any CPU" configuration can be run both as x86 or as x64 on an x64 computer in different cases. If you know the bitness of Oracle Client on the target computer, it's better to specify the bitness of your application explicitly in order to have the same bitness of the application and of Oracle Client.

Post Reply