running in 64 bit mode with the 32 bit Oracle client installed
940950May 31 2012 — edited Oct 9 2013I have seen many postings on this issue but none of the suggested solutions have helped me.
I am running visual studio 2010 professional with SP1 on windows 7 64 bit machine. When I try to run a web service locally and call it with SoapUI, I get the following error message during OracleConnection.Open().
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 have tried setting up the build configuration and the project settings to target 32 bit but that has not helped. I have also tried removing the reference to System.Data.OracleClient that shows being under Program Files (x86) and add a new reference to the dll under GAC_64. That too did not work.
I only have the 64 bit client installed on my machine.
Any help will be appreciated.
Thank you