Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Pulling hair out : ASP.NET & SQL Server authentication

Pulling hair out : ASP.NET & SQL Server authentication

Scheduled Pinned Locked Moved ASP.NET
asp-netsysadmincsharpdatabasesql-server
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Verdant123
    wrote on last edited by
    #1

    i cannot seem to get my asp.net app to connect to the sql server i get the error: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. just like the old MACHINE\ASPNET error i got the first time i tried an sql app on my development windows xp machine but how am i supposed to add this user to a sql login? everytime i try, i always get "User does not exist" is there an alias i need to use or something? has anyone been able to add this user? :mad:

    M 1 Reply Last reply
    0
    • V Verdant123

      i cannot seem to get my asp.net app to connect to the sql server i get the error: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. just like the old MACHINE\ASPNET error i got the first time i tried an sql app on my development windows xp machine but how am i supposed to add this user to a sql login? everytime i try, i always get "User does not exist" is there an alias i need to use or something? has anyone been able to add this user? :mad:

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      When you add a user in a enerprise manager , you can select from a list of users and aspnet account exist there too. How do you add it? In Security--> Login node and Add User? Mazy You're face to face, With the man who sold the world - David Bowie

      V N 2 Replies Last reply
      0
      • M Mazdak

        When you add a user in a enerprise manager , you can select from a list of users and aspnet account exist there too. How do you add it? In Security--> Login node and Add User? Mazy You're face to face, With the man who sold the world - David Bowie

        V Offline
        V Offline
        Verdant123
        wrote on last edited by
        #3

        i can add aspnet, but that doesn't resolve the issue, the asp.net apps still don't have access

        1 Reply Last reply
        0
        • M Mazdak

          When you add a user in a enerprise manager , you can select from a list of users and aspnet account exist there too. How do you add it? In Security--> Login node and Add User? Mazy You're face to face, With the man who sold the world - David Bowie

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          For security reasons I would not recommend adding the aspnet account to your SQL Server logins.

          V 1 Reply Last reply
          0
          • N Not Active

            For security reasons I would not recommend adding the aspnet account to your SQL Server logins.

            V Offline
            V Offline
            Verdant123
            wrote on last edited by
            #5

            figured out how to add it... its the IIS_WGP account on win2k3 why is it bad for security reasons? i have added it just as a user on the database i need, with read-only permissions... how would you recommend i use sql from asp.net then?

            N 1 Reply Last reply
            0
            • V Verdant123

              figured out how to add it... its the IIS_WGP account on win2k3 why is it bad for security reasons? i have added it just as a user on the database i need, with read-only permissions... how would you recommend i use sql from asp.net then?

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              aspnet is an anonymous account. It would be tighter to have a specific user login for each database. If you have several databases, all of which aspnet has rights to, how do you contol access? The potential is there for a security breach. If it isn't a concern for you then fine, but why expose the risk if you don't need to.

              V 1 Reply Last reply
              0
              • N Not Active

                aspnet is an anonymous account. It would be tighter to have a specific user login for each database. If you have several databases, all of which aspnet has rights to, how do you contol access? The potential is there for a security breach. If it isn't a concern for you then fine, but why expose the risk if you don't need to.

                V Offline
                V Offline
                Verdant123
                wrote on last edited by
                #7

                ok, thanks... but this application is the sole purpose of the server, so i am not worried about cross application security, especially since i am only allowing reading

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups