Previous Next

Thread: login failed for MachineName/ASPNET user error

Last post 08-15-2008 9:16 AM by nb123. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 08-14-2008, 2:55 AM

    • nb123
    • Not Ranked
    • Joined on 07-04-2006, 11:31 AM
    • Posts 6

    login failed for MachineName/ASPNET user error

    hi,i am trying to test .net 2.0 login functionality on my local machine..its running on IIS.Whenever i try to login to this control i have on my page, it tells me loginFailed for MachineName/ASPNET user...as per my understanding,i have given the permission to this account on Inetpub/wwwroot folder.Please help me  resolve this.thanks

  • 08-14-2008, 4:01 AM In reply to

    Re: login failed for MachineName/ASPNET user error

    What is the error ? what does the IIS logs say?

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 08-14-2008, 9:45 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Lawrenceville, NJ
    • Posts 4,068
    • IIS MVPs

    Re: login failed for MachineName/ASPNET user error

    Please be more specific and detailed about what you are doing, as well as post the full and exact text of the error message.

  • 08-14-2008, 3:01 PM In reply to

    • nb123
    • Not Ranked
    • Joined on 07-04-2006, 11:31 AM
    • Posts 6

    Re: login failed for MachineName/ASPNET user error

    i am trying to create a user account using asp.net 2.0 createUserWizard.When i click on CreateUser button,after filling the information,It gives me the  error saying  " Login failed for user 'localMachineName\ASPNET' " i checke the eventViewer for IIS and it says

    Event Type:      Failure Audit
    Event Source:      MSSQLSERVER
    Event Category:     4
    Event ID:      18456
    User : ASPNET
    computer : machineName
     

    First few lines of stacktrace looks like this

    Stack Trace:

    [SqlException (0x80131904): Login failed for user 'MachineName\ASPNET'.]
       System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800131
       System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186
       System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1932
       System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33
       System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +172
       System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +381
       System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181
       System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +173
       System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +357
       System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +30
       System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
       System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
       System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +494
       System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
       System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
       System.Data.SqlClient.SqlConnection.Open() +111
    

     

     

     

     

  • 08-14-2008, 4:35 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Lawrenceville, NJ
    • Posts 4,068
    • IIS MVPs

    Re: login failed for MachineName/ASPNET user error

    You do not have your SQL connection setup properly. 
    http://support.microsoft.com/kb/316989

    Since this is purely an ASP.NET programming issue, see http://forums.asp.net/ ...

  • 08-15-2008, 9:16 AM In reply to

    • nb123
    • Not Ranked
    • Joined on 07-04-2006, 11:31 AM
    • Posts 6

    Re: login failed for MachineName/ASPNET user error

    will do...thank you...

Page 1 of 1 (6 items)
Page view counter