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 8249323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:30:03+00:00 2026-06-07T23:30:03+00:00

I would like to know the best approach of publishing .NET applications using Oracle.DataAccess.

  • 0

I would like to know the best approach of publishing .NET applications using Oracle.DataAccess.

The server is Windows 2008 r2 and has both 32-Bit and 64-Bit Oracle clients installed.

I have been trying to solve this error for the last two days, to no evail. I am publishing using the File System, setting Any CPU for the platform target, and correctly referencing the local dll using the GAC path (C:\WINDOWS\Microsoft.NET\assembly\GAC_32\Oracle.DataAccess\v4.0_4.112.3.0__89b483f429c47342\Oracle.DataAccess.dll).

When I publish this application, I get this error:

Could not load file or assembly ‘Oracle.DataAccess’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

OR This one:

Could not load file or assembly ‘Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342’ or one of its dependencies. The system cannot find the file specified.

Depending on small changes in the publish settings.

I have also tried publishing using 32-Bit platform and setting the application pool to enable 32-bit applications, still with no success.

I do not want to copy the Oracle.DataAccess DLL manually, and I have nothing in the config file to point to the DLL.

I do have another application running on the server using the same .DLL but I want to come up with the proper way how to publish such applicaitons to avoid future problems, and I do not want to play the trial and error game to publish.

  • 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-07T23:30:07+00:00Added an answer on June 7, 2026 at 11:30 pm

    The issue, in my case was that the development machine had a more recent version than the server, and this caused issues. Once the development machine had the same oracle client, and the reference to the oracle data access dll was of the same version, there were no problems.

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

Sidebar

Related Questions

I've recently come across Quartz.net, and would like to know the best approach on
I would like to know the best approach to create a Common Information Model
I would like to know what's the best approach to test the method pushEvent()
I would like to know what is the best approach when it comes to
I would like to know what is the best approach in order to iterate
I would like to know what is the best approach to begin a project
I would like to know what are the best approaches for protecting apllication and
I would like to know what's the best way to organize my php project
I would like to know what is the best import strategy within django reusable
I would like to know what is the best, fastest and easiest way to

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.