Login fails for my asp.net user?

Last post 08-06-2008 11:29 PM by chetan.sarode. 7 replies.

Sort Posts:

  • Login fails for my asp.net user?

    09-01-2006, 6:06 PM
    • Loading...
    • therookie32
    • Joined on 09-01-2006, 10:04 PM
    • Posts 6

    I added my machine name aspnet account as a db owner on the database and i still cant login.  I am getting this error:

    Cannot open user default database. Login failed.
    Login failed for user 'F1J2J91\ASPNET'.

    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: Cannot open user default database. Login failed.
    Login failed for user 'F1J2J91\ASPNET'.

     What can i do so i can login and play in this db as the one on the web doesnt work?  Thanks!

  • Re: Login fails for my asp.net user?

    09-21-2006, 12:50 PM
    • Loading...
    • DiverMarv
    • Joined on 07-02-2002, 2:59 PM
    • Posts 34

    I also am getting this error. Anyone know a fix?

     

    Thanks

    Marvin Hoffman

    Divermarv@hotmail.com

    Cold Fusion Developer, soon to be .Net Developer
  • Re: Login fails for my asp.net user?

    09-22-2006, 7:02 PM
    • Loading...
    • therookie32
    • Joined on 09-01-2006, 10:04 PM
    • Posts 6
    I have tried all sorts of things and still cant get it to work.  Let me know if you solve it.  I believe that this error can have different meanings and solutions... 
  • Re: Login fails for my asp.net user?

    11-06-2006, 6:59 PM

    I dont get this message if i run the application without debugging (ctrl+F5) but if i try to get to it outside of Visual Studio then i get the error.  I have given my aspnet user read & execute, list folder contents, and read permissions.  I have also attached the db to sql management studio express 05, added my machinename/aspnet user to the security tab, and added it as a user of the database as the db owner but it still wont work.

    Any other thoughts?
     

  • Re: Login fails for my asp.net user?

    04-25-2007, 12:08 AM

    Open your SQL Server Enterprize Manager Go to Logins

    Add the user ASPNET with proper rights..

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: Login fails for my asp.net user?

    06-09-2008, 12:45 AM

    Goto SQL Server Management Studio then in Security then Login 

    -Create User MachineName\ASPNET

    And Then Assign Your Database Rights to This User

    God Is Busy ! May I Help You
  • Re: Login fails for my asp.net user?

    06-12-2008, 11:35 PM

    You dont need to create user ASP.NET, provided youinstall .net framework

    Just you have to add it under sql server by Open Sql Server Managment Studio - > Security - >Login

    Add here ASP.NET user (By searching it on ypur machine)

    & register it by executing following command

    Open VS command propmt - > aspnet_regiis -i

    http://forums.asp.net/t/953255.aspx

     

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: Login fails for my asp.net user?

    08-06-2008, 11:29 PM

    Would a MSDN article do instead of a KB article?  If so, take a look at:

    http://msdn2.microsoft.com/en-us/library/ms229862.aspx

    Scott Guthrie also has a helpful blog entry on the process as well as all sorts of tips working with the Membership database:

    http://weblogs.asp.net/scottgu/archive/2006/02/24/438953.aspx

    http://forums.asp.net/t/1277454.aspx

    Go to Control Panel -> Administrative Tools -> Computer Management -> Local Users and Groups -> Users -> ASPNET

    Right Click on ASPNET and select Properties

    Go to Member Of tab.

    Click on Add -> Advanced -> Find Now

    Select SQLServer2005MSSQLUser$<machinename>$SQLExpress

    Click on Ok -> Ok - >Apply

    Close all the windows and reboot your machine. It should work now.

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
Page 1 of 1 (8 items)
Microsoft Communities
Page view counter