Hi,
I have windows 7 64 bit OS with visual studio 2010. mt database is oracle 64 bit enterprise edition. when i am trying to connect to oracle database using (System.Data.OracleClient) its throwing following error.
"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."
Thanks.


Robbinson86 reputationPosted May 29, 2014, 10:00 PM EDT
It would not possible to use 32 bit version of library in 64 bit mode application version. For 64 bit , you have to use oracle client for 64 bit version.
Hope, this would answer your query.
Please don't forget to mark as answer if this post helps you.
Sujit SahooRank #3,035 · 475 reputationPosted May 29, 2014, 10:33 PM EDT
I have installed oracle 64 bit only. but also problem is not solved
Robbinson86 reputationPosted May 29, 2014, 10:39 PM EDT
you also need 64-bit orcacle client needs to be installed where you deploy the application.