SQLCONNECTION Login failed for user URGENT

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default SQLCONNECTION Login failed for user URGENT

    Ok I have this big problem again.
    I have my IIS Server in one maching and my SQL DB in
    another. It needs to stay this way.
    I am connection with windows authentication to IIS

    <authentication mode="Windows" />
    <identity impersonate="true" />


    and my connection string looks like this

    "Trusted_Connection=Yes;data source=NET_SERV_RS;integrated
    security=SSPI;initial
    catalog=RDBP1;pooling=true;connection lifetime=180;min
    pool size=0;max pool size=20"

    WHY IS IT LOOSING THE CREDENTIALS!!!!!!!!!!!!!!

    PLEASE HELP.

    If I request the page from the IIS Server it works, but
    from any other maching IT DOESNT.

    --------------------------------------------------------
    Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
    Description: An unhandled exception occurred during the
    execution of the current web request. Please review the
    stack trace for more information about the error and where
    it originated in the code.

    Exception Details: System.Data.SqlClient.SqlException:
    Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

    Source Error:


    Line 78: strConn =
    System.Configuration.ConfigurationSettings.AppSett ings.Get
    (strConn);
    Line 79: sqlConn = new SqlConnection
    (strConn);
    Line 80: sqlConn.Open();
    Line 81: return sqlConn;
    Line 82: }


    Source File: F:\eClinics\Global.asax.cs Line: 80

    Stack Trace:


    [SqlException: Login failed for user 'NT
    AUTHORITY\ANONYMOUS LOGON'.]
    System.Data.SqlClient.ConnectionPool.GetConnection
    (Boolean& isInTransaction) +472

    System.Data.SqlClient.SqlConnectionPoolManager.Get PooledCon
    nection(SqlConnectionString options, Boolean&
    isInTransaction) +372
    System.Data.SqlClient.SqlConnection.Open() +384
    eClinics.SQL.OpenSQLconn(SqlConnection sqlConn) in
    F:\eClinics\Global.asax.cs:80

    eClinics.Resource.Resource.ResourceCode.PopulateRe sourceGri
    d() in
    F:\eClinics\DataRepository\Resource\ResourceCode.a spx.cs:36
    eClinics.Resource.Resource.ResourceCode.Page_Load
    (Object sender, EventArgs e) in
    F:\eClinics\DataRepository\Resource\ResourceCode.a spx.cs:66
    System.Web.UI.Control.OnLoad(EventArgs e) +67
    System.Web.UI.Control.LoadRecursive() +35
    System.Web.UI.Page.ProcessRequestMain() +731




    -----------------------------------------------------------
    ---------------------
    Version Information: Microsoft .NET Framework
    Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
    Silvia Brunet Jones Guest

  2. Similar Questions and Discussions

    1. Login failed for user '(null)'
      I am running a third-party web application (mainly ASP and specific pages with their own extension that are processed by a third-party ISAPI dll)...
    2. LOGIN FAILED for USER xxx\ASPNET
      Hi, I can generate a dataset just fine in design mode using a SQL server that's on my computer, but when I launch it, the ASPNET user can't...
    3. Login failed for user 'test'.
      Hello there, I have a aspx page with the following code in the click event of a button. string myConnectionString =...
    4. login failed for user \aspnet
      I am new to MSDE 2000. Installed this yesterday using windows installer, deafult settings(no change in authentication). a. I want to create...
    5. Login failed for user...
      I'm trying to set up a subscription from a transactional publication. The publication works find but when I try to push or pull a subscription to...
  3. #2

    Default Re: SQLCONNECTION Login failed for user URGENT

    If you are using Integrated Windows Authentication in IIS, then the
    webserver never has the user's password, so it can't send it to another box.

    You'll need to use Basic Authentication (preferably with SSL) so that the
    webserver can send the user's name *and* password to SQL Server

    -or-

    You need Kerberos + Delegation (but apparently this has its cons as well
    with Windows 2000 networks)

    Cheers
    Ken

    "Silvia Brunet Jones" <sbrunet_jones@hotmail.com> wrote in message
    news:007b01c34c82$6cbfe280$a401280a@phx.gbl...
    : Ok I have this big problem again.
    : I have my IIS Server in one maching and my SQL DB in
    : another. It needs to stay this way.
    : I am connection with windows authentication to IIS
    :
    : <authentication mode="Windows" />
    : <identity impersonate="true" />
    :
    :
    : and my connection string looks like this
    :
    : "Trusted_Connection=Yes;data source=NET_SERV_RS;integrated
    : security=SSPI;initial
    : catalog=RDBP1;pooling=true;connection lifetime=180;min
    : pool size=0;max pool size=20"
    :
    : WHY IS IT LOOSING THE CREDENTIALS!!!!!!!!!!!!!!
    :
    : PLEASE HELP.
    :
    : If I request the page from the IIS Server it works, but
    : from any other maching IT DOESNT.
    :
    : --------------------------------------------------------
    : Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
    : Description: An unhandled exception occurred during the
    : execution of the current web request. Please review the
    : stack trace for more information about the error and where
    : it originated in the code.
    :
    : Exception Details: System.Data.SqlClient.SqlException:
    : Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
    :
    : Source Error:
    :
    :
    : Line 78: strConn =
    : System.Configuration.ConfigurationSettings.AppSett ings.Get
    : (strConn);
    : Line 79: sqlConn = new SqlConnection
    : (strConn);
    : Line 80: sqlConn.Open();
    : Line 81: return sqlConn;
    : Line 82: }
    :
    :
    : Source File: F:\eClinics\Global.asax.cs Line: 80
    :
    : Stack Trace:
    :
    :
    : [SqlException: Login failed for user 'NT
    : AUTHORITY\ANONYMOUS LOGON'.]
    : System.Data.SqlClient.ConnectionPool.GetConnection
    : (Boolean& isInTransaction) +472
    :
    : System.Data.SqlClient.SqlConnectionPoolManager.Get PooledCon
    : nection(SqlConnectionString options, Boolean&
    : isInTransaction) +372
    : System.Data.SqlClient.SqlConnection.Open() +384
    : eClinics.SQL.OpenSQLconn(SqlConnection sqlConn) in
    : F:\eClinics\Global.asax.cs:80
    :
    : eClinics.Resource.Resource.ResourceCode.PopulateRe sourceGri
    : d() in
    : F:\eClinics\DataRepository\Resource\ResourceCode.a spx.cs:36
    : eClinics.Resource.Resource.ResourceCode.Page_Load
    : (Object sender, EventArgs e) in
    : F:\eClinics\DataRepository\Resource\ResourceCode.a spx.cs:66
    : System.Web.UI.Control.OnLoad(EventArgs e) +67
    : System.Web.UI.Control.LoadRecursive() +35
    : System.Web.UI.Page.ProcessRequestMain() +731
    :
    :
    :
    :
    : -----------------------------------------------------------
    : ---------------------
    : Version Information: Microsoft .NET Framework
    : Version:1.1.4322.573; ASP.NET Version:1.1.4322.573


    Ken Schaefer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139