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

  • Thread starter Thread starter P.L.
  • Start date Start date
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
 
Back
Top