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. ASP.Net Site not allowing multiple logins.

ASP.Net Site not allowing multiple logins.

Scheduled Pinned Locked Moved ASP.NET
databasehelpsysadmincsharpasp-net
8 Posts 4 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
    Paramhans Dubey
    wrote on last edited by
    #1

    Hi Experts, I have a web site in ASP.Net with Sql Server 2000 as DB. My problem is that the web application is not allowing concurrent logins to it. Once a user logs into the site starts some process, the database get locked and other user can not get access to the site. For the first user it works fine but other concurrent connections it gives me following error message: "{"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interface..." I don't know whats the reason for this. I think I am missing some settings in my server. I have used following connection string "Data Source=MyServer; Initial Catalog=MyDb; User ID=un; Password=123456; MultipleActiveResultSets=True; pooling=true" Can anyone help me out. Its very urgent. __________________ Regards, Paramhans Dubey.

    A P S 3 Replies Last reply
    0
    • P Paramhans Dubey

      Hi Experts, I have a web site in ASP.Net with Sql Server 2000 as DB. My problem is that the web application is not allowing concurrent logins to it. Once a user logs into the site starts some process, the database get locked and other user can not get access to the site. For the first user it works fine but other concurrent connections it gives me following error message: "{"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interface..." I don't know whats the reason for this. I think I am missing some settings in my server. I have used following connection string "Data Source=MyServer; Initial Catalog=MyDb; User ID=un; Password=123456; MultipleActiveResultSets=True; pooling=true" Can anyone help me out. Its very urgent. __________________ Regards, Paramhans Dubey.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Check you code . Are you using Conn.Dispose() any where of your application ?

      cheers, Abhijit

      P 1 Reply Last reply
      0
      • A Abhijit Jana

        Check you code . Are you using Conn.Dispose() any where of your application ?

        cheers, Abhijit

        P Offline
        P Offline
        Paramhans Dubey
        wrote on last edited by
        #3

        Hi Abhijit, Thanx For your reply. answer is No. I have not used Conn.dispose() anywhere in my code.

        A 1 Reply Last reply
        0
        • P Paramhans Dubey

          Hi Abhijit, Thanx For your reply. answer is No. I have not used Conn.dispose() anywhere in my code.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          I think This[^] link will may help you out .

          cheers, Abhijit

          1 Reply Last reply
          0
          • P Paramhans Dubey

            Hi Experts, I have a web site in ASP.Net with Sql Server 2000 as DB. My problem is that the web application is not allowing concurrent logins to it. Once a user logs into the site starts some process, the database get locked and other user can not get access to the site. For the first user it works fine but other concurrent connections it gives me following error message: "{"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interface..." I don't know whats the reason for this. I think I am missing some settings in my server. I have used following connection string "Data Source=MyServer; Initial Catalog=MyDb; User ID=un; Password=123456; MultipleActiveResultSets=True; pooling=true" Can anyone help me out. Its very urgent. __________________ Regards, Paramhans Dubey.

            P Offline
            P Offline
            Paddy Boyd
            wrote on last edited by
            #5

            Have you looked to see if anything is locked in your database after the first user has logged in?

            1 Reply Last reply
            0
            • P Paramhans Dubey

              Hi Experts, I have a web site in ASP.Net with Sql Server 2000 as DB. My problem is that the web application is not allowing concurrent logins to it. Once a user logs into the site starts some process, the database get locked and other user can not get access to the site. For the first user it works fine but other concurrent connections it gives me following error message: "{"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interface..." I don't know whats the reason for this. I think I am missing some settings in my server. I have used following connection string "Data Source=MyServer; Initial Catalog=MyDb; User ID=un; Password=123456; MultipleActiveResultSets=True; pooling=true" Can anyone help me out. Its very urgent. __________________ Regards, Paramhans Dubey.

              S Offline
              S Offline
              Sundar_R
              wrote on last edited by
              #6

              Are you able to connect to the DB server via Query analyzer or through remote desktop. Think you dont have rights to connect to the server.

              P 1 Reply Last reply
              0
              • S Sundar_R

                Are you able to connect to the DB server via Query analyzer or through remote desktop. Think you dont have rights to connect to the server.

                P Offline
                P Offline
                Paramhans Dubey
                wrote on last edited by
                #7

                Yes i am able to connect to database using query analyzer.

                S 1 Reply Last reply
                0
                • P Paramhans Dubey

                  Yes i am able to connect to database using query analyzer.

                  S Offline
                  S Offline
                  Sundar_R
                  wrote on last edited by
                  #8

                  Then the problem is in the transaction that you are using. Where is the transaction being controlled ? is it in the business layer or at the SQL level ? Have you closed all the transactions properly ? Have a look at the activity monitor, filter by the database and check.

                  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