Reputation: 1469
I am using Windows 10 64 bit and Oracle client 32 bit (It's my company requirement). But when I open some existed program, it display a dialog with error:
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
I had fixed by add Enviroment variables but it's not working. I am searching around Google, but the solution almost about fix on Visual Studio when developing application.
These program is existed, not run from Visual Studio.
How should I do to make application which using Oracle client 32 bit on OS 64 bit?
Upvotes: 0
Views: 17889
Reputation: 59456
A 32 bit application requires also a 32 bit Oracle Client. A 64 bit application (resp. "AnyCPU" on windows 64 bit) requires a 64 bit Oracle Client.
Unless you use the ODP.NET Managed Driver (see here) there is not way to get rid of it. One solution is to install both, 32 bit and 64 bit Oracle Client, follow this instruction: BadImageFormatException. This will occur when running in 64 bit mode with the 32 bit Oracle client components installed
Upvotes: 1