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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:39:29+00:00 2026-05-14T02:39:29+00:00

I am trying to connect to oracle server located at some IP address but

  • 0

I am trying to connect to oracle server located at some IP address but always get error as

System.TypeInitializationException:
The type initializer for
‘Oracle.DataAccess.Client.OracleConnection’
threw an exception. —>
Oracle.DataAccess.Client.OracleException
The provider is not compatible with
the version of Oracle client at
Oracle.DataAccess.Client.OracleInit.Initialize()
at
Oracle.DataAccess.Client.OracleConnection..cctor()
— End of inner exception stack trace — at Oracle.DataAccess.Client.OracleConnection..ctor(String
connectionString) at
WebApplication1._Default.Page_Load(Object
sender, EventArgs e) in
C:\Users\Sunil\Documents\Visual Studio
2008\Projects\WebApplication1\WebApplication1\Default.aspx.cs:line
26

Here is a test file

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Oracle.DataAccess.Client;
namespace WebApplication1
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try {
                string oradb = "Data Source=(DESCRIPTION=(ADDRESS_LIST="
                + "(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.11)(PORT=1523)))"
                + "(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ORCL)));"
                + "User Id=<user id>;Password=<some password>;";

                OracleConnection conn = new OracleConnection(oradb); // C#
                conn.Open();

            }
            catch (Exception  ex){
                Label1.Text = ex.ToString();
            }

        }
    }
}

I have installed oracle 10gR2 client and oracle 10gR2 provider for ASP.NET under Windows Vista. Am I missing anything ?

Problem Partially solved I had installed oracle client after provider

..but now exception showing as

Oracle.DataAccess.Client.OracleException
at
Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32
errCode, OracleConnection conn, IntPtr
opsErrCtx, OpoSqlValCtx*
pOpoSqlValCtx, Object src, String
procedure) at
Oracle.DataAccess.Client.OracleException.HandleError(Int32
errCode, OracleConnection conn, IntPtr
opsErrCtx, Object src) at
Oracle.DataAccess.Client.OracleConnection.Open()
at
WebApplication1._Default.Page_Load(Object
sender, EventArgs e) in
C:\Users\Sunil\Documents\Visual Studio
2008\Projects\WebApplication1\WebApplication1\Default.aspx.cs:line
28

  • 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-14T02:39:29+00:00Added an answer on May 14, 2026 at 2:39 am

    Problem solved … windows vista security (?) was the problem I ran the program as administrator and everything worked fine

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

Sidebar

Related Questions

I am trying to connect to a remote oracle database server in Java with
I'm trying to use cx_Oracle to connect to an Oracle instance and execute some
I have been trying to connect to an Oracle server using the following connection
We are trying to connect to Sql Server 2005 via Oracle 11gR2 gateway and
I'm trying to connect my local Oracle 11g database using server explorer in Visual
i am using Oracle Application server 10.1.2.0.2. I am trying to connect an oracle
I am getting an error while trying to connect to oracle DB on the
I'm trying to use cygwin sqlplus to connect to a remote oracle installation located
I am trying to connect to an Oracle Database using nHibernate. I can connect
I'm trying to add a new JDBC Data Source connect to hive in oracle

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.