Multiple user's cannot access the application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • john20
    New Member
    • Jul 2008
    • 37

    #1

    Multiple user's cannot access the application

    Hi All,

    I have created web application using vb.net and deployed on the windows 2003 server. what is happening that multiple user cannot

    access the application means when one user access the page and he is doing some processing on the application

    like want to retrieve the user details and at the same time when another user try to access the application for some other

    processing then first user's processing get stop.

    and it is giving error:

    'ThreadAbortExc eption: Thread was being aborted'


    can u tell me what is the problem its a application state problem or session state problem or some other problem.

    i am not able to find the problem.

    any help will be very much greatfull.

    Thanks

    -joseph
  • nmsreddi
    Contributor
    • Jul 2006
    • 366

    #2
    Hello

    In web application generally for each login a separate session will be maintained

    but in your case(what i understand from your post) it is some thing like all users are using the same session which is different from web concepts

    can you please post some sample code what you have for each user login so that i may get some idea.

    Comment

    • john20
      New Member
      • Jul 2008
      • 37

      #3
      i dont have login page in my application , to get user id i use

      Server variable = Logon_user (Integrated windows authentication )

      Comment

      • john20
        New Member
        • Jul 2008
        • 37

        #4
        Here is the code which i am using in my page:

        Code of which First user accessing the Page :

        Imports System.IO
        Imports System.Threadin g
        Imports System.Data
        Imports System.Data.Sql Client
        Imports System.Data.Ole Db


        Namespace data

        Partial Class ProcessExtracti on
        Inherits System.Web.UI.P age

        Shared objThread As System.Threadin g.Thread

        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load

        If Not IsPostBack Then

        Dim sUserID As String = Request.ServerV ariables("LOGON _USER").Substri ng(Request.Serv erVariables("LO GON_USER").Inde xOf("\") + 1)

        objThread = New System.Threadin g.Thread(Addres sOf _startThread)

        setRefresh("30" , 2)
        startMetaThread ()

        End If
        End Sub

        Public Sub startMetaThread ()

        objThread.Start ()
        End Sub

        Private Sub _startThread()

        // Here i m doing all the processing of Retreiving data from database

        End sub

        // In this method i m refreshing the page.
        Private Sub setRefresh(ByVa l sSeconds As String, ByVal nIndex As Integer)

        Response.Append Header("Refresh ", sSeconds & "; URL=dmProcessEx traction.aspx?s essionid=" & Me.lblSession.T ext)
        End Sub

        End Class

        End Namespace


        Code of which Second user accessing the Page :

        Imports System.IO
        Imports System.Data.Ole Db
        Imports System.Xml
        Imports System.Xml.XPat h


        Namespace dataXS


        Partial Class DATAXSMain
        Inherits System.Web.UI.P age

        Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Init
        InitializeCompo nent()

        Session("LICENC E") = "1"
        Me.lblFrameCont rol.Text = "<iframe scrolling=""" & "yes" & """ frameborder=""" & "0" & """ src=""" & "dmDataExtracti on.aspx" & """ id=""" & "myIframe" & """ runat=""" & "server" & """></iframe>"

        End Sub

        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
        Dim sUserID As String = Request.ServerV ariables("LOGON _USER").Substri ng(Request.Serv erVariables("LO GON_USER").Inde xOf("\") + 1)

        // Here I am doing the processing of Data Retrieving from database

        End Sub

        Comment

        Working...