Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,

I met the "BadImageFormatException. This will occur when running in 64 bit mode with the 32 bit Oracle client components installed" error while connecing the Oracle 11g database.

Software Details:

1.Windows 7
2.Visual studio 2010
3.Oracle 11g release 2 (64 bit)

I tried to resolve this problem for past 1 week but could not able to resolve .
So any body please help and resolve my problem
I already googled the same and i got some openions ,but the options were not not working.

Thanks,
Sabari


Please mail me..help..
Posted
Updated 16-Feb-15 2:52am
v2
Comments
Pheonyx 16-Feb-15 9:27am    
I believe (and I'm just speculating) that the issue is that your application is a 32bit application.
You need to tell the compiler that it needs to be a 64bit application.
This is because a 32bit application cannot consume a 64bit dll. It is possible that a 64bit application uses a 32bit dll however.

As I said, I am speculating because of the following statements which seem to contradict each other:

"This will occur when running in 64 bit mode with the 32 bit Oracle client "

and

3.Oracle 11g release 2 (64 bit)
Rob Philpott 16-Feb-15 11:28am    
Firstly, try setting your projects build to x86 and see if that fixes the problem.
G3Coder 16-Feb-15 11:51am    
Hi, can you confirm which Oracle client you are running? Use tnsping to determine which Oracle client is been used. It might be that the 64 bit client is last in the path variable and the 32 bit Oracle client is been used instead.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900