Click here to Skip to main content
13,201,763 members (68,088 online)
Rate this:
 
Please Sign up or sign in to vote.
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 20-Jan-16 21:13pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

"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.
  Permalink  
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">
Member 10192073 21-Jan-16 7:29am
   
- <dep_list>
<DEP NAME="oracle.network.aso" VER="11.2.0.1.0" PLAT="NT_AMD64" />
<DEP NAME="oracle.rdbms.partitioning" VER="11.2.0.1.0" PLAT="NT_AMD64" />
<DEP NAME="oracle.sdo" VER="11.2.0.1.0" PLAT="NT_AMD64" />
<DEP NAME="oracle.rdbms.lbac" VER="11.2.0.1.0" PLAT="NT_AMD64" />
<DEP NAME="oracle.rdbms.numa" VER="10.1.0.1.0" PLAT="ALL_PLATFORMS" />
<DEP NAME="oracle.oraolap" VER="11.2.0.1.0" PLAT="NT_AMD64" />
<DEP NAME="oracle.ntmgmtobjs" VER="11.2.0.1.0" PLAT="NT_AMD64" />
<DEP NAME="oracle.rdbms.dm" VER="11.2.0.1.0" PLAT="NT_AMD64" />
<DEP NAME="oracle.clrintg.ode_net_2" VER="11.2.0.1.0" PLAT="NT_AMD64" />
<DEP NAME="oracle.rdbms.dv" VER="11.2.0.1.0" PLAT="NT_AMD64" />
<DEP NAME="oracle.rdbms.rat" VER="11.2.0.1.0" PLAT="NT_AMD64" />
Member 10192073 21-Jan-16 7:29am
   
ya its 64 bit

it shows only
PLAT="NT_AMD64
Member 10192073 21-Jan-16 7:19am
   
actually i want to tell you that first i had 32 bit version of window and then my 64 bit version of oracle was not installing in my computer then i format the system and reinstall 64 bit OS in my computer and then i installed oracle 64 bit in my computer.
it means my OS is 64 bit and my oracle is also 64 bit.so now why its showing the error

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


Advertise | Privacy |
Web04 | 2.8.171020.1 | Last Updated 21 Jan 2016
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100