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

Problem with lengthy process

hi all,

i'm using iis6 installed on win2003 , dotnet framework 1.1 .

My problem is..
a page on my application have a lengthy process which takes about 4
minutes (performing database transactions ..) to completes.

user click on the transaction button to start this lengthy process.

after about 140 seconds the client browser displays the error message
'page can't displayed ...'.

note> the transactions continues to work untill it finish !

so the client can't see the results of the executed transactions.

on iis i set connectiontimeout=900.
on code i set server.scripttimeout=900 .
on web.config. i set <httpRuntime executionTimeout="900" ...>
and the sqlcommand.commandtimeout=180.

i don't know what is wrong,why the client browser timed-out every time
?

thanks for any help .

atef

Nov 19 '05 #1
5 1193
I see 2 solutions here:
1. Use a seperate application (for example a windows service) to
process time-consuming tasks, instead of letting the web application do
it.
2. If you do want to run it in your web app, you could use a separate
thread to run the task. You could then use a progress bar on the client
which polls the server for the progress. You can use a progress bar
like mine (see http://wilcoding.xs4all.nl/Wilco/View.aspx?NewsID=146).

----
- Wilco Bauwer
Blog & Custom Controls @ http://wilcoding.xs4all.nl

Nov 19 '05 #2
Yes, this is simplest solution I've seen:
http://www.aspnetpro.com/NewsletterA...200308bm_l.asp

--
I hope this helps,
Steve C. Orr, MCSD
http://SteveOrr.net
<at*********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
hi all,

i'm using iis6 installed on win2003 , dotnet framework 1.1 .

My problem is..
a page on my application have a lengthy process which takes about 4
minutes (performing database transactions ..) to completes.

user click on the transaction button to start this lengthy process.

after about 140 seconds the client browser displays the error message
'page can't displayed ...'.

note> the transactions continues to work untill it finish !

so the client can't see the results of the executed transactions.

on iis i set connectiontimeout=900.
on code i set server.scripttimeout=900 .
on web.config. i set <httpRuntime executionTimeout="900" ...>
and the sqlcommand.commandtimeout=180.

i don't know what is wrong,why the client browser timed-out every time
?

thanks for any help .

atef

Nov 19 '05 #3
> a page on my application have a lengthy process which takes about 4
minutes (performing database transactions ..) to completes.

Another solution would be to have your code pop a message onto a message
queue and put an entry is some db table, you're code will immediately
return, then forward them onto a page which let's them check the status of
that table you put in the entry to. Have that page periodically refresh
like every 10s or something, then when the messag queue finished your
message, then update that row and you're done.

Just a suggestion. Good luck.
Nov 19 '05 #4
thanks to Wilco Bauwer and Steve C. Orr

on my page , when the user click on the button i display a popup window
with animated gif and a waiting message to the user.

so the user knows he/she needs to wait.

if i use threading , i needs to re-build user interface and navigation
scenario in various situations (i'll do it if no other solution
available)

i still needs to know why the client browser disconected ?
is it IIS or Firewall or what ?

any comments will be very helpful.

thanks

atef

Nov 19 '05 #5
thanks to Wilco Bauwer and Steve C. Orr

on my page , when the user click on the button i display a popup window
with animated gif and a waiting message to the user.

so the user knows he/she needs to wait.

if i use threading , i needs to re-build user interface and navigation
scenario in various situations (i'll do it if no other solution
available)

i still needs to know why the client browser disconected ?
is it IIS or Firewall or what ?

any comments will be very helpful.

thanks

atef

Nov 19 '05 #6

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

Similar topics

4
by: Hardy Wang | last post by:
Hi, I have a win form application, when a button is clicked, a lengthy operation will be triggered. During the time program is still running, this application seems not to be able to response to...
11
by: ASP newbie | last post by:
I cannot run my asp.net application in w2k server. But the program works fine under w2k professional. Can anyone tell me is there any difference in the settings? Many thanks.
3
by: Ben Fidge | last post by:
Hi Our app performs a quite lengthy process when the user clicks a button. We'd like to display a little pop-up "Please Wait..." notification using an animated gif. How would I go about this?...
5
by: lazypig06 | last post by:
Hi ! I'd like to ask everyone this question. I am currently maintain a website which have hundreds of pages and lot of subdirectories. Most of these pages contains a common function (let's call...
5
by: Jonah Bishop | last post by:
I'm developing a photo album web application for use on a web site, and I'm running into a problem with lengthy operations. My application allows the user to import a number of images at once into...
13
by: michael sorens | last post by:
I have a lengthy sequence of operations that are executed and reported on in a status window in a Windows Form application. Some work is done by background threads but other work is not. I am...
2
by: Carl Heller | last post by:
Working in VS2003, .Net 1.1 I'm working on a project where I compare data between two databases. This is a lengthy process, and very data intensive, so I decided to create a class, and thread...
12
by: Justin | last post by:
I can attach my code if anyone wants to see it however I'll try to ask my question with some mark up code first. I'm having a problem terminating my process while using DoEvents. For example: ...
2
by: Sin Jeong-hun | last post by:
Process p = new Process(); p.StartInfo.RedirectStandardOutput = true; p.StartInfo.UseShellExecute = false; p.Start(); p.StandardOutput.ReadToEnd(); This works if the application outputs very...
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
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
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.