Results 1 to 5 of 5

Thread: Cannot open database "db1. Login failed for user 'BIGRED1\ASP.NET'

  1. #1
    Join Date
    May 2011
    Posts
    253

    Cannot open database "db1. Login failed for user 'BIGRED1\ASP.NET'

    Hello friends, I had just downloaded sql server 2005 and install and connected it with visual web developer. I can even create a database using VWD. But when I’m trying to open the page with any connectivity to the database I got a error stating database "db1" requested by the login. Login failed for user 'BIGRED1\ASP.NET' does any one know what modification I need to do to solve this problem? Any suggestion will be appreciated.

  2. #2
    Join Date
    May 2009
    Posts
    527

    Re: Cannot open database "db1. Login failed for user 'BIGRED1\ASP.NET'

    Hi, its seems like you had setup your connection to windows account to connect it with the database rather then specifying the username and password. Your connection to your self when your trying to connect your database through Visual Web Developer at design-time. If your running the application as an administrator then you might had not grand the permission of your account to an database, and it’s fail and give you an error.

  3. #3
    Join Date
    Apr 2009
    Posts
    488

    Re: Cannot open database "db1. Login failed for user 'BIGRED1\ASP.NET'

    Hello, even I’m having the same problem with it. I think so this might be due to ASP.NET user. My problem is I don’t know how to add ASP.NET user in the database? The express manager do not have any support for this I had even run few queries like create user and alter user quires which give an error message stating that I don’t have permission for this. Can anyone guide me how to do this in step by step I will be very much thankful to that person.

  4. #4
    Join Date
    Mar 2010
    Posts
    145

    Re: Cannot open database "db1. Login failed for user 'BIGRED1\ASP.NET'

    Hi, you can try this to get the things done these are few step to be followed 1st specify your user name and password in connection string. Just check weather application run in different account which is having a permission to access your database after checking grand the permission to the ASP.NET account. You can even grand the permission by executing a query sp_ grantlogin ‘MachineName\ASPNET' in machine name you have to provide your appropriate machine name or an sql server name. Hope this information will be very much helpful to you.

  5. #5
    Join Date
    May 2009
    Posts
    511

    Re: Cannot open database "db1. Login failed for user 'BIGRED1\ASP.NET'

    Hi, if your problem has not yet solved by granting the privileges and creating the user name for database then this may help to solve your problem. 1st change the authentication mode to sql authentication and then write the connection string again with the username and password for the sql server and add the Trusted_Connection=no in the connection string and after that it may look like this "Server=localhost;Database=test;integrated security=sspi;Uid=sa;Pwd=test;Trusted_Connection=no;";

Similar Threads

  1. Windows 7 login screen showing "other user" icon
    By Iravan in forum Operating Systems
    Replies: 4
    Last Post: 17-09-2011, 08:02 AM
  2. Replies: 6
    Last Post: 09-02-2011, 12:39 AM
  3. Connection failed for the database login
    By Indivar in forum Software Development
    Replies: 5
    Last Post: 18-11-2010, 12:03 AM
  4. Unable to Login due to "User Profile Service" failure
    By Kamlesh Rao in forum Vista Help
    Replies: 5
    Last Post: 28-02-2008, 02:48 AM
  5. Replies: 2
    Last Post: 20-04-2007, 07:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,962,948.60950 seconds with 16 queries