0
votes

I have visual studio 2013 and oracle 11g

When I try to connect to the database I get the next errror:

"Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client compoonents installed."

I know there is an issue between the 64 bit visual studio and 32 bit Oracle client. But I am looking for a solution the whole day now and I can only find outdated posts on the internet about older versions.

I already tried to select "platform target: x86" in the build settings.

I also looked for a 64 bit version of the oracle client but that also failed a couple of times.

I Appreciate every help because I need this connection for a very important school project.

Thanks for your time!

1

1 Answers

1
votes

you need install 64 bit oracle client

link: Instant Client Downloads for Microsoft Windows (x64)

instantclient-basiclite-windows.x64-11.2.0.4.0.zip (23,504,640 bytes)

as they said about installation

Installation Steps:

  1. Download the appropriate Instant Client packages for your platform. All installations REQUIRE the Basic package.

  2. Unzip the packages into a single directory such as "instantclient".

  3. Set the library loading path in your environment to the directory in Step 2 ("instantclient"). On many UNIX platforms, LD_LIBRARY_PATH is the appropriate environment variable. On Windows, PATH should be used.

  4. Start your application and enjoy.