Skip to Main Content

Oracle Developer Tools for Visual Studio

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

1008256May 10 2013 — edited May 14 2013
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2013
Added on May 10 2013
4 comments
8,927 views