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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Login failed for user 'domain\username'

Login failed for user 'domain\username'

Scheduled Pinned Locked Moved ASP.NET
helpcsharpdatabasesql-servervisual-studio
7 Posts 2 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.
  • P Offline
    P Offline
    Phanindra Kumar
    wrote on last edited by
    #1

    Hi, When trying to connect to sqlserver 2000 I am getting this error. I am having Windows 2003 server, VS.NET 2003, Sql Server 2000 in my machine.I tried lot of articles but no use.Can anyone help me ? Thanks in Advance

    Phanindra...

    R 1 Reply Last reply
    0
    • P Phanindra Kumar

      Hi, When trying to connect to sqlserver 2000 I am getting this error. I am having Windows 2003 server, VS.NET 2003, Sql Server 2000 in my machine.I tried lot of articles but no use.Can anyone help me ? Thanks in Advance

      Phanindra...

      R Offline
      R Offline
      R Palanivel
      wrote on last edited by
      #2

      HI Kumar Go to SQL server 2000 enterprise manager and expand sql server group under your server name will display.right click on that server name ,choose properties and select "Security Tab".in that Security tab choose Authentication as "SQL server and Windows" Regards RPL

      r_palanivel83 10:01 4 Jan '06

      P 1 Reply Last reply
      0
      • R R Palanivel

        HI Kumar Go to SQL server 2000 enterprise manager and expand sql server group under your server name will display.right click on that server name ,choose properties and select "Security Tab".in that Security tab choose Authentication as "SQL server and Windows" Regards RPL

        r_palanivel83 10:01 4 Jan '06

        P Offline
        P Offline
        Phanindra Kumar
        wrote on last edited by
        #3

        Hi, Thanks for reply. Eventhough I changed authentication type from 'Windows' to Mixed mode, I am getting the same error. But when I am trying to remove identity impersonate="true" in web.config i encountered a different error like: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. Any help in this issue ? Thanks

        Phanindra...

        R 1 Reply Last reply
        0
        • P Phanindra Kumar

          Hi, Thanks for reply. Eventhough I changed authentication type from 'Windows' to Mixed mode, I am getting the same error. But when I am trying to remove identity impersonate="true" in web.config i encountered a different error like: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. Any help in this issue ? Thanks

          Phanindra...

          R Offline
          R Offline
          R Palanivel
          wrote on last edited by
          #4

          HI Create a new User for your database and give the permission for all tables and sp's for that user. -- Create New User Expand your Server on SQL enterprise manager,Open Security->Logins. Here u can create a New user for your database after that u have to set userid, password for your connection(trusted SQL mean Userid,password must) Regards RPL

          r_palanivel83 10:01 4 Jan '06

          P 1 Reply Last reply
          0
          • R R Palanivel

            HI Create a new User for your database and give the permission for all tables and sp's for that user. -- Create New User Expand your Server on SQL enterprise manager,Open Security->Logins. Here u can create a New user for your database after that u have to set userid, password for your connection(trusted SQL mean Userid,password must) Regards RPL

            r_palanivel83 10:01 4 Jan '06

            P Offline
            P Offline
            Phanindra Kumar
            wrote on last edited by
            #5

            Hi, I had done everything you said. But the problem persists. I am getting the same error "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.". When i am trying to use the same connection string in another application it is working fine. I am confused! Thanks

            Phanindra...

            R 1 Reply Last reply
            0
            • P Phanindra Kumar

              Hi, I had done everything you said. But the problem persists. I am getting the same error "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.". When i am trying to use the same connection string in another application it is working fine. I am confused! Thanks

              Phanindra...

              R Offline
              R Offline
              R Palanivel
              wrote on last edited by
              #6

              HI check your IIS Configuration is Anonymous.if it is checked this problem should go Regards RPL

              r_palanivel83 10:01 4 Jan '06

              P 1 Reply Last reply
              0
              • R R Palanivel

                HI check your IIS Configuration is Anonymous.if it is checked this problem should go Regards RPL

                r_palanivel83 10:01 4 Jan '06

                P Offline
                P Offline
                Phanindra Kumar
                wrote on last edited by
                #7

                I checked both the anonymous and integrated authentication. But no use. I also tried without integrated authentication. Thanks

                Phanindra...

                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