This discussion is archived
4 Replies Latest reply: May 14, 2013 7:20 AM by 1008256 RSS

Oracle Client DLL Error: 64-bit mode running 32-bit Oracle Client

1008256 Newbie
Currently Being Moderated
To all,

I know there is an answered question regarding this error but the fix has not worked for me. So I am posting this in the hopes that someone can help.
I think I have tried everything to no avail.

This is my scenario:
Basics: I am running Windows 7-64-bit OS. My Visual Studio version is 2008. My Configuration Manager is set to 'AnyCPU'.
I have a WPF application that I can run on my computer that uses the 32-bit Oracle Client DLL and it can connect.
I am trying to recreate this application to a Web Application. Using the same code and configuration and DLL, I get the following error when attempting to connect to an Oracle database:

"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 to change my IIS Manager Application_Pool default setting, 'Enable 32-bit Applications" from FALSE to TRUE and it still does not work.
I have tried to reference the 64-bit Oracle Client DLL in the folder ..\Framework64\OracleClient.dll and it does not work.
I have tried changing the Configuration Manager from 'AnyCPU' to 64-bit then 32-bit and it still does not work.

I am out of ideas.
Currently, my setting is Configuration Manager - AnyCPU; Application_Pool (Enable 32-bit APplications = TRUE); OracleClient DLL - 32-bit.

I would appreciate any help.

Thanks in advance.
Gloria

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points