Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7673245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:28:07+00:00 2026-05-31T16:28:07+00:00

I have to set a few projects in our VS 2005 solution to build

  • 0

I have to set a few projects in our VS 2005 solution to build to x64 only. The 3rd party software the projects are using requires it.

The Oracle DLL (System.Data.OracleClient.dll) the project is referencing reside in Windows\Microsoft.NET\Framework\v2.0.57027
which causes issues when connecting to oracle from a 64bit project.

Is there a reason why Microsoft is not using the Framework64\v2.0.50727 directory to reference the System.Data.OracleClient.dll? The project is forced to build to x64, so logically one would think it would use the Framework64 references.

The error I’m getting is:

System.InvalidOperationException : 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. —-> System.BadImageFormatException : An attempt was
made to load a program with an incorrect format. (Exception from
HRESULT: 0x8007000B)

Whenever I go to add a reference, it’s only referencing the non-64bit DLL’s. Will I need to hard reference the 64bit System.Data.OracleClient.dll?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:28:08+00:00Added an answer on May 31, 2026 at 4:28 pm

    This doesn’t have anything to do with reference assemblies. The compiler always uses 32-bit assembly reference. Which is fine, it only uses the metadata in the assembly which is the same for 32-bit and 64-bit code.

    What goes wrong here is the kind of assembly it finds at runtime. The 32-bit ones by the sound of it. Common problem with Oracle, they don’t like to use the GAC for some reason. And their assemblies contain unmanaged code so can’t run either way. You’ll need to either deploy the 64-bit version of the Oracle provider or force your program to run in 32-bit mode. Contact Oracle for support if you can’t sort it out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does this smell? I have a few properties you can only set once. They
I'm trying to reorder/group a set of results using SQL. I have a few
I have set our Eclipse projects up with Ivy and a URL resolver which
I am currently automating the build of our .NET solution (which contains many projects,
I have a solution which contains a few projects and an external exe. When
I have a page that takes a few minutes to run. When I set
I have set up a version control system using TortoiseSVN at my home to
I have a mySQL database that tracks our projects and drives our website's display
We have this huge application that has 18 projects in our source control (
I have had the problem a few times now while working on projects and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.