Skip to Main Content

Developer Community

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Connecting to Oracle from Visual Studio 2022

jagonzoDec 2 2024

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.

Environment: I am running Oracle 23ai in Docker. I am able to connect to it from Powerbuilder and other apps running in MacOS (Sequoia 15.1.1 (24B91) - MacBook Pro M3 Max/ Parallels running Windows 11 pro.

I can connect to MSSQL server 2022 running in Docker from Visual Studio 2022.

I even created another Parallels VM running Windows 11 Pro and downloaded VS2022 community edition to it.

I downloaded ODAC23.5Xcopy_x64 and ran the setup. I am using the Oracle Instant Client that was in the ODAC23.5Xcopy_x64 folder.

I copied the Oracle client in ODAC23.5Xcopy_x64 to C:\ora23ai_instantclient and ran the ODAC23.5Xcopy_x64 install batch file.

I checked that the files in the instant client are 64 bit and they are.

Nothing has worked.

Comments
Post Details
Added on Dec 2 2024
1 comment
182 views