473,378 Members | 1,429 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,378 software developers and data experts.

problem with multithreading and Web services method invocation

Hi:

I have an ASP.NET page which makes a synchronous Web services method
call. At the same time, however, I wanted it to load another page as an
iFrame (i've also tried as a javascript popup window) - this second
page is responsible for polling a DB and continually updating its text
box display.

The problem is that once the Web service call is initiated, the second
page becomes unresponsive exactly until the call is completed, when it
resumes. I'm baffled as to why this second page's request should have
anything to do with the first one's Web service request. I've tried to
encapsulate the time-consuming DB queries of the second page into a
separate thread and this works great (I tested it by printing a
timestamp to a file), but I also need a way of updating the display in
real-time while the Web services call is going through. Are there any
ideas as to how I can accomplish this?

- adh

May 11 '06 #1
1 1119
your second window is blocked because asp.net serializes request by session.
one one request per session runs at a time. you shoud change you logic.

client -- request long running process -->

server starts process on background thread
<-- server returns a page display status, with a meta refresh

client displays status page
sends refresh request -->

server check if procees is done
if not done
<-- send poll page
else
<-- send results
-- bruce (sqlwork.com)
<ab**********@gmail.com> wrote in message
news:11*********************@g10g2000cwb.googlegro ups.com...
Hi:

I have an ASP.NET page which makes a synchronous Web services method
call. At the same time, however, I wanted it to load another page as an
iFrame (i've also tried as a javascript popup window) - this second
page is responsible for polling a DB and continually updating its text
box display.

The problem is that once the Web service call is initiated, the second
page becomes unresponsive exactly until the call is completed, when it
resumes. I'm baffled as to why this second page's request should have
anything to do with the first one's Web service request. I've tried to
encapsulate the time-consuming DB queries of the second page into a
separate thread and this works great (I tested it by printing a
timestamp to a file), but I also need a way of updating the display in
real-time while the Web services call is going through. Are there any
ideas as to how I can accomplish this?

- adh

May 11 '06 #2

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

Similar topics

0
by: Ramesh K | last post by:
Hi All, During Attach to a process like DLLHOST ,DLLHOST has FILE references to the system dlls like " odbc32.dll etc..(One can observer this in process explorer tool of Sysinternals.com by...
0
by: Ramesh K | last post by:
Hi All, During Attach to a process like DLLHOST ,DLLHOST has FILE references to the system dlls like " odbc32.dll etc..(One can observer this in process explorer tool of Sysinternals.com by...
9
by: Popoxinhxan | last post by:
Dear experts, i want to develop an client application that consume the google search web service. In my MainForm i have a method to retrieve all the search result e.g. GetGoogleResults(). Now i...
5
by: sarge | last post by:
I would like to know how to perform simple multithreading. I had created a simple form to test out if I was multithreading properly, but got buggy results. Sometime the whole thig would lock up...
1
by: Simon Hart | last post by:
Hi, I thought I'd just open a thread in an attempt to get peoples feelers with regards to multithreading vs Async Web Service processing. Of course Web Services makes it easy to do Async...
28
by: JV | last post by:
My ASP.NET application needs to accept data from a post and return quickly. I've added a worker thread to wake up and save data asynchronously after the data is received. But, it appears to me...
4
by: Michael | last post by:
Hi, I am trying to create a multithreaded VB 2005 application which attempts to create a new thread per Domain Controller (DC) in my environment. Each thread connects to its allocated DC and...
0
by: vignesh28 | last post by:
hi .. i got the following error in activator.createinstance method 'Exception has been thrown by the target of an invocation.' this is the error. here is my code: public object...
0
by: sukasa | last post by:
Greetings. After first noticing a malfunction in my application, I ran some tests which have given me the following insights on the code performance: -The " infinite" loop which waits on...
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: 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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.