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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:02:40+00:00 2026-06-12T03:02:40+00:00

I programmed an Oracle Database connection to Oracle Express Version 10 It works on

  • 0

I programmed an Oracle Database connection to Oracle Express Version 10

It works on my development PC (Windows Vista).

When I run this program on Windows XP PC, the Oracle DB connection throws an exception when connecting to the server

“Error: The type initializer for ‘Oracle.DataAccess.Client.OracleConnection’ threw an exception”

The code for the connection is below:

try{ 
 string oradb = "Data Source="
               +"(DESCRIPTION ="
               +" (ADDRESS = (PROTOCOL = TCP)(HOST = " + IP + ")(PORT = 1521))"
               +" (CONNECT_DATA ="
               +" (SERVER = DEDICATED)"
               +" (SERVICE_NAME = XE)"
               +" )"
               + " );User id=XXXX;Password=XXXX;";

            OracleConnection conn = new OracleConnection(oradb);

             .....
             .....


}
catch (Exception ex)
{
        MessageBox.Show("Error:" + ex.Message);
}
  • 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-12T03:02:41+00:00Added an answer on June 12, 2026 at 3:02 am

    Which version of client software on the XP box ?

    Checking my computer configuration I only see ODP.Net 1.x on a Oracle 10g install ( for me it was C:\oracle\product\10.2.0\db_home\ODP.NET\bin\1.x ), it’s a .Net 1.0 install that won’t work with .net 2.0 – 4.0. This may be the source of your trouble.

    The Oracle 10.2 ODP.Net drivers were also remarkably flaky (even the .Net 2.0 version). If you are using .Net 1.0 or 1.1, you may have to re register Oracle.DataAccess.dll using ODPReg.exe (same directory), if you are using 2.0 you may have to install an .net 2.0 (up to 3.5) Oracle client or a .Net 4.0 (or 4.5) Oracle client.

    I would suggest you install a 11.2 client, and check that Oracle.DataAccess.dll is correctly registered ( there are 2 installations : one for .Net 2.0-3.5, one for .Net 4.0, on my box C:\oracle\product\11.2.0\client_ODTwithODAC112030\odp.net\bin\2.x and C:\oracle\product\11.2.0\client_ODTwithODAC112030\odp.net\bin\4 ).
    You may need to force registration using OraProvCfg.exe

    You may also try using Xcopy driver installation, if you want to distribute the drivers with your software, be sure to read carefully the documentation, it’s bizarre and error prone ( ODAC112030Xcopy_x64.zip for example ).

    ODAC is here : http://www.oracle.com/technetwork/developer-tools/visual-studio/downloads/index.html.

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

Sidebar

Related Questions

I have been using oracle database throughout database courses, and I have programmed there
Perhaps this is normal, but in my Oracle 11g database I am seeing programmers
i programmed a tic tac toe game in python and it works perfectly fine
I have never programmed a gadget for Vista or Seven, but I would like
in my c# programme i am requesting data from an oracle database and one
We programmed an application which is a number crunching simulation that needs to run
My Oracle database contains some simple, rarely-changed data (it takes about months or even
I have a table (in an Oracle database) just like below: department ---------- Finance
I programmed a validator with JQuery and PHP that works in all browsers except
I programmed the following into Eclipse but the program keeps giving me the error:

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.