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. General Programming
  3. C#
  4. System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET'

System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET'

Scheduled Pinned Locked Moved C#
asp-netdatabasehelptutorialquestion
3 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.
  • O Offline
    O Offline
    oOomen
    wrote on last edited by
    #1

    hello, i get this error-> System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET' do some one knows how to solve it? i am new to sql and i use msde. thank u in advance

    G D 2 Replies Last reply
    0
    • O oOomen

      hello, i get this error-> System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET' do some one knows how to solve it? i am new to sql and i use msde. thank u in advance

      G Offline
      G Offline
      Grimolfr
      wrote on last edited by
      #2

      You basically have three options: 1) Get some SQL Server management tools, and set up login/user permissions in the SQL Server / Database for the ASPNET user. 2) Same as above, but create a separate SQL Login account, and don't use trusted connections to the database. 3) Add the ASPNET user to the Administrators group. This, however, is not at all secure, and can have very serious side-effects.


      Grim

      (aka Toby)

      MCDBA, MCSD, MCP+SB

      Need a Second Life?

      1 Reply Last reply
      0
      • O oOomen

        hello, i get this error-> System.Data.SqlClient.SqlException: Login failed for user 'xxx\ASPNET' do some one knows how to solve it? i am new to sql and i use msde. thank u in advance

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        It sounds like your connection string is setup using Integrated Security. Avoid this and use a dedicated username and password for SQL access. You'll also have to setup that username and password for the database using SQLManager. RageInTheMachine9532 "...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome

        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