Cannot open SQL DB request for this login. (System.Data.SqlClient.SqlException)

Last post 03-02-2007 1:25 AM by Kevin Yu - MSFT. 4 replies.

Sort Posts:

  • Cannot open SQL DB request for this login. (System.Data.SqlClient.SqlException)

    02-28-2007, 1:57 AM
    • Loading...
    • Mehdi6002
    • Joined on 01-09-2007, 1:47 PM
    • Ireland
    • Posts 97

    Hi guys,

    Everything seems to be fine, can browse the DB from VS, Preview data works fine in dataset, and the page works fine before adding any SQL DB code.

    I draged n dropped a new DropDownList, Bind it to an object from dataset. And when I want to run the page I get this error !!!Sad

    ASP NET SQL Error

    I appreciate any help.

    Thanks,
    Mehdi

    Mehdi Entezary
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
  • Re: Cannot open SQL DB request for this login. (System.Data.SqlClient.SqlException)

    02-28-2007, 4:01 AM
    • Loading...
    • thuanvh
    • Joined on 04-11-2006, 1:20 PM
    • Viet Nam
    • Posts 25
    Can you provide us more details about your problem.
    Thuanvh - NAMMEDIA,INC
    http://www.nammedia.com
  • Re: Cannot open SQL DB request for this login. (System.Data.SqlClient.SqlException)

    02-28-2007, 5:39 AM
    • Loading...
    • jpazgier
    • Joined on 11-10-2003, 12:54 PM
    • Posts 611

    Do you have ASPNET user login created for your database with rights to access it? when you run VS studio it access database as you, web page access database as ASPNET so it has to have at least rights to read from your table and execute stored procedures if you have any.

    Thanks

    Thanks

    JPazgier
  • Re: Cannot open SQL DB request for this login. (System.Data.SqlClient.SqlException)

    03-01-2007, 9:46 AM
    • Loading...
    • Mehdi6002
    • Joined on 01-09-2007, 1:47 PM
    • Ireland
    • Posts 97

    How can I add the ASP.NET user to my database.

    I remember I didn't have to do anything manualy on my PC at home and I didn't have this problem.

    I think myself it is also matter of in what order you install, Visual Studio, IIS, MSDE

    But how can I register ASP user to my database now ?

    Mehdi Entezary
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
  • Re: Cannot open SQL DB request for this login. (System.Data.SqlClient.SqlException)

    03-02-2007, 1:25 AM
    Answer

    Hi,

    You need to connect to the SQL Server instance from VS IDE. Add ASPNET user to the logins and grant it proper permissions.

    Sincerely,
    Kevin Yu
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Mark as Not Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (5 items)
Microsoft Communities
Page view counter