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

  • Home
  • SEARCH
  • 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 8233251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:04:12+00:00 2026-06-07T18:04:12+00:00

I have a C# console application that runs on a 64 bit Windows 2008

  • 0

I have a C# console application that runs on a 64 bit Windows 2008 server and access Oracle 11g via ODP.net. It’s been working for about 6 months.

I compile the program on my computer, making the build setting “Any CPU”. I installed the appropriate 64bit Oracle dll on the Windows server 6 months ago and never replace it – I only replace the exe of the console app.

I updated it last night – and now I’m getting a BadImageFormat exception with the message that the Oracle assembly can’t be found, which usually means I have the wrong compile package for the dll. I confirmed and I am still using the original Oracle dll. I also confirmed that I am compiling to “Any CPU” on my server.

I’ve even tried recompiling and reloading and finding the source of the original Oracle dll and reloading.

Has anyone seen this before? Any ideas?

  • 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-06-07T18:04:13+00:00Added an answer on June 7, 2026 at 6:04 pm

    So I found this after trial and error.

    Turns out at some point I had updated the ODP version on my PC to a version 4., but the version on the server was 2.. While I had correctly accounted for 32bit versus 64bit, it was compiled to expect a specific version.

    For some reason, I could NOT just copy the new DLL onto the server. I had to compile my application referencing the 4.* 64bit dll and then I could load everything to the server and have it work. And then I had to remove the reference and rereference the 32 bit in order to keep working on my PC. Annoying, but it works.

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

Sidebar

Related Questions

Scenario: I have a console application that needs to access a network share with
I have a .NET console application that needs to generate some HTML files. I
In .NET c# 3.5 I have a console application (A) that references several assemblies(X,
I have a C# console application that calls SSRS soap based webservice (service runs
I have a spring application that has configured log4j (via xml) and that runs
I have a C++ Win32 application that runs as a console app if run
Say I have a console application that runs on Machine1. What is happening in
I have a simple console application that runs calculations in several threads (10-20 of
I have a powershell script that runs a console .exe application. The console application
We have an application that has one or more text console windows that all

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.