473,385 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Multiple user's cannot access the application

37
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:

'ThreadAbortException: 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
Jul 10 '08 #1
3 1500
nmsreddi
366 256MB
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.
Jul 10 '08 #2
john20
37
i dont have login page in my application , to get user id i use

Server variable = Logon_user (Integrated windows authentication )
Jul 10 '08 #3
john20
37
Here is the code which i am using in my page:

Code of which First user accessing the Page :

Imports System.IO
Imports System.Threading
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.OleDb


Namespace data

Partial Class ProcessExtraction
Inherits System.Web.UI.Page

Shared objThread As System.Threading.Thread

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

If Not IsPostBack Then

Dim sUserID As String = Request.ServerVariables("LOGON_USER").Substring(Re quest.ServerVariables("LOGON_USER").IndexOf("\") + 1)

objThread = New System.Threading.Thread(AddressOf _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(ByVal sSeconds As String, ByVal nIndex As Integer)

Response.AppendHeader("Refresh", sSeconds & "; URL=dmProcessExtraction.aspx?sessionid=" & Me.lblSession.Text)
End Sub

End Class

End Namespace


Code of which Second user accessing the Page :

Imports System.IO
Imports System.Data.OleDb
Imports System.Xml
Imports System.Xml.XPath


Namespace dataXS


Partial Class DATAXSMain
Inherits System.Web.UI.Page

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
InitializeComponent()

Session("LICENCE") = "1"
Me.lblFrameControl.Text = "<iframe scrolling=""" & "yes" & """ frameborder=""" & "0" & """ src=""" & "dmDataExtraction.aspx" & """ id=""" & "myIframe" & """ runat=""" & "server" & """></iframe>"

End Sub

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim sUserID As String = Request.ServerVariables("LOGON_USER").Substring(Re quest.ServerVariables("LOGON_USER").IndexOf("\") + 1)

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

End Sub
Jul 10 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
0
by: RonNanko | last post by:
Hi, let me first explain what my problem is all about: I have a third-party application, which does not allow multiple instances of itself. As I need to run the application in multiple instances...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
9
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated...
3
by: Nathan Sokalski | last post by:
When I view any page in my application a second time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
37
by: Allen Browne | last post by:
If you develop for others, you probably have multiple versions of Access installed so you can edit and create MDEs for clients in different versions. This works fine under Windows XP, even with...
2
by: robert112 | last post by:
This is quite a hard one guys. ***Some necessary back ground Info*** I have an asp.net 1.1 application that uses a WYSIWYG to return some html created by the user in the admin section of the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.