Click here to Skip to main content
15,884,758 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
i am using VS2012 and oracle 11G 64 bit when i am going to connect the database via C# ASP.net then i am getting following error


Quote:
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.


so what should i do for this issue?
i don't want to install 32 bit oracle
Posted

1 solution

"i don't want to install 32 bit oracle"
That isn't what the error message is saying: it says that you have installed 32 bit Oracle components and are trying to use them from a 64 bit application.
Either check the Oracle setup - and possibly re-install - or change your app to 32 bit mode.
 
Share this answer
 
Comments
Member 10192073 21-Jan-16 3:31am    
how we can check that my oracle is 32 bit or not?actually i have installed 64 bit oracle because my operating system was 32 bit then i had to install the window 64 bit and then i installed oracle 11 G 64 bit
OriginalGriff 21-Jan-16 3:45am    
If you installed Oracle on a 32bit system, then it wouldn't install a working 64 bit copy - the OS doesn't support it, so it would install a 32 bit version instead. If you later installed a 64bit OS over the top of your 32 bit, then the chances are that you got a mixed up installation going on!
You can check what you have pretty easily:
http://stackoverflow.com/questions/13188670/how-to-know-installed-oracle-client-is-32-bit-or-64-bit
Look at all the answers - I suspect you have both 32 and 64 bit versions!
Member 10192073 21-Jan-16 7:12am    
i found in above link is

A simple way to find this out in Windows is to run SQLPlus from your Oracle homes's bin directory and then check Task Manager. If it is a 32-bit version of SQLPlus, you'll see a process on the Processes tab that looks like this:

sqlplus.exe *32
If it is 64-bit, the process will look like this:

sqlplus.exe

so in processes it looks as sqlplus.exe
it means its 64 version
now what should i do?
OriginalGriff 21-Jan-16 7:20am    
Did you look at ALL the answers?
Member 10192073 21-Jan-16 7:27am    
in comps.xml

<dep_list>
<dep name="oracle.rdbms" ver="11.2.0.1.0" plat="NT_AMD64">
<dep name="oracle.dbjava.jdbc" ver="11.2.0.1.0" plat="NT_AMD64">

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



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