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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:17:48+00:00 2026-06-09T21:17:48+00:00

I am trying to connect to a Oracle database by using the Windows Identity

  • 0

I am trying to connect to a Oracle database by using the Windows Identity Token,
it worked yesterday but today it doesn’t and I dont know why.

This is my code:

string ssoConnectionString;
var user = CreateSSOConnectionString(connectionStringBuilder, out ssoConnectionString);
oracleConnectionStringBuilder = new OracleConnectionStringBuilder
                                    {
                                        UserID = user.Identity.Name,
                                        ConnectionString = ssoConnectionString
                                    };

private WindowsPrincipal CreateSSOConnectionString(IConnectionStringBuilder connectionStringBuilder, out string ssoConnectionString)
{
    var user = new WindowsPrincipal(WindowsIdentity.GetCurrent());
    ssoConnectionString = ConfigurationManager.AppSettings["SSOConnectionString"];
    ssoConnectionString = string.Format(ssoConnectionString, connectionStringBuilder.Host);
    return user;
}

Connection = new Oracle.DataAccess.Client.OracleConnection();
Connection.ConnectionString = oracleConnectionString.ConnectionString;

Connection.Open(); //Fails on this line

The Code doesn’t exactly look like this, but it’s the essentials.

The SSO ConnectionString is located in app.config and looks like this:

<add key="SSOConnectionString" value="DATA SOURCE={0};User Id=/;" />

Here is a link showing how Oracle them selves explain how to do it: http://docs.oracle.com/cd/E11882_01/win.112/e18754/featConnecting.htm#i1006432

This is the error message I get:

ORA-1017: invalid username/password; logon denied

I have checked with breakpoints and everything looks fine. I’ve also searched alot around for this error and most people say it’s because of password becoming case sensitive in Oracle version 11g, but I’m not providing any password.

  • 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-09T21:17:49+00:00Added an answer on June 9, 2026 at 9:17 pm

    What caused this error was actually a mismatch between the Oracle.DataAccess.dll version and the Oracle Client installed on my machine.

    So the error is actually not at all related to the code or connection string in the configuration file.

    Check your Oracle Client version by writing “sqlplus” in a command window, check that the Oracle.DataAccess.dll version and target .NET framework version matches.

    • 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 an Oracle Database using nHibernate. I can connect
I am trying to connect to oracle database from c++ using OCCI, I am
I'm trying to connect my application with an Oracle database using NHIBERNATE 3.1.0.4000 version
I am trying to connect to an Oracle Database using java and JDBC code.
I am trying to connect to an Oracle database via JDBC. Using the following
I'm trying to connect my local Oracle 11g database using server explorer in Visual
I've been trying to connect to an Apache Derby/JavaDB embedded database using Oracle SQL
I'm trying to connect to an Oracle 10g database using the built in Microsoft
I am trying to connect to a remote oracle database server in Java with
I am trying to connect to oracle server located at some IP address but

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.