473,409 Members | 2,006 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,409 software developers and data experts.

xmlhttp requests not returning until long-running process is compl

Hello,
I have an issue with a long-running import process in our asp.net app (1.1).
After the user initiates an import, we're trying to make periodic xmlhttp
requests to update a progress bar. In development (running the webserver on
localhost) this works fine. When we move the code to our build environment,
the webserver won't respond to the xmlhttp request until the import is done.
I've tracked the problem down to the session ID cookie -- if it's removed
from the request the webserver responds immediately. So I basically have 3
questions:

1) Does asp.net not process 2 concurrent requests for a single session id?
2) Why does the code work in development but not build? the webservers are
configured the same.
3) Is there any way to make the xmlhttp request without sending any cookie
information?

Any help would be awesome, Thanks
Peter L.

May 8 '06 #1
1 1569
point 1 is true, asp.net only allows one concurrent request to the same
session. this is to manage locking, especially for out of proc session
managers. to clear the cookie use setRequestHeader. a better approach is to
have the long running process use a background thread, so that the first
request completes. then you can poll for results.

-- bruce (sqlwork.com)


"peterlan" <pe******@discussions.microsoft.com> wrote in message
news:78**********************************@microsof t.com...
Hello,
I have an issue with a long-running import process in our asp.net app
(1.1).
After the user initiates an import, we're trying to make periodic xmlhttp
requests to update a progress bar. In development (running the webserver
on
localhost) this works fine. When we move the code to our build
environment,
the webserver won't respond to the xmlhttp request until the import is
done.
I've tracked the problem down to the session ID cookie -- if it's removed
from the request the webserver responds immediately. So I basically have 3
questions:

1) Does asp.net not process 2 concurrent requests for a single session id?
2) Why does the code work in development but not build? the webservers are
configured the same.
3) Is there any way to make the xmlhttp request without sending any cookie
information?

Any help would be awesome, Thanks
Peter L.

May 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Krzysztof Kubiak | last post by:
I'm trying to make use of XMLHTTP object, but I've come across a problem. It seems that there is no way to create dynamic array of such XMLHTTP objects (to make several requests) and handle them...
6
by: WhenAmIOn.com | last post by:
Hi all, I developed a web site that uses javascript and XMLHTTP to dynamically load info on the page from the server without having to re-load the page. Recently I've received complaints of it...
5
by: jim.frantzen | last post by:
You have an active XMLHTTP request on the main page (localhost/App1/index.aspx) The XMLHTTP request takes about 60 seconds to receive a response back from localhost/App1/getxml.aspx. You have an...
5
by: Ric | last post by:
I created a page in ASP.Net (with no buffering) that does the following: Output line #1 FLUSH {wait 1 second} Output line #2 {wait 1 second} Output line #3 FLUSH
1
by: daninbrum | last post by:
Dear All, Please excuse the following thickness, I am new to client scripting. I have set up a page comprising of three DIVs, the content of which gets changed by XMLHTTP requests (including...
2
by: stephan.krebs | last post by:
Hi there, i get data from 4 different pages with asp 3.0 and Microsoft.XMLHTTP. It is fine and stable but it takes 15 secondes. the reason is (i think) that the requests is one after the other....
4
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the...
14
by: FMDeveloper | last post by:
Currently transitioning from a shared host to a dedicated server. The same code that works on the old server is not working on the dedicated server. It is a simple AJAX request like: <code>...
21
vikas251074
by: vikas251074 | last post by:
I am getting error while entry in userid field. When user enter his user id, an event is fired immediately and user id is verified using AJAX method. But I am getting error 'Object doesn't support...
7
by: Brent | last post by:
I'm trying to figure out how to iterate over an array that would send a series of XMLHttp requests. I'd like to have each request finish before the next one begins, but I believe that this is not...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.