Force .NET cide to pick up 64 bit Oracle Client in a 32 bit WindowsProcess (related to AutoSys)

P

P.L.

Dear Experts,

I met a problem and hope to have your advices and help.

My Question:
How to force my c# program to call 64 bit oracle client instead of 32
bit oracle client while both client are installed on the same machine?

Details;
OS: Windows 2003 64 bit server
Oracle Clients: both 32 bit and 64 bit Oracle 10g clients

AutoSys is a scheduler tool, and its local agents running on windows
64 bit servers in 32 bit mode, connecting its backend Oracle database
using 32 bit Oracle client.

My c# program on the same server connects another oracle database
using the 64 bit oracle client.

All're running well, but work together.

When the AutoSys agent invokes my c# program, the following exception
will raise:
"Exception - UpdateUserProfiles: Attempt to load Oracle client
libraries threw BadImageFormatException. This problem will occur when
running in 64 bit mode with the 32 bit Oracle client components
installed."

It seems, in the process that AutoSys starts (it is 32 bit process),
my c# program is forbidden to use 64 bit oracle client, as AutoSys is
running with 32 bit Oracle client simultaneously.

Again, my Question:
How to force my c# program to call 64 bit oracle client?

Thanks a lot,

P.L
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top