473,773 Members | 2,286 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 connectiontimeo ut=900.
on code i set server.scriptti meout=900 .
on web.config. i set <httpRuntime executionTimeou t="900" ...>
and the sqlcommand.comm andtimeout=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 1211
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*********@ho tmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.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 connectiontimeo ut=900.
on code i set server.scriptti meout=900 .
on web.config. i set <httpRuntime executionTimeou t="900" ...>
and the sqlcommand.comm andtimeout=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
1969
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 other actions. When I switch to other window, and switch back to my application, all I can see is a white window, it won't refresh itself until operation finishes. If I have some other buttons in the form, it is not possible to show up during...
11
1389
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
3685
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? Thanks
5
3399
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 it "foo()" on top of each of these pages. I've tried to use auto prepend and .htaccess to prepend a file which contains an exact function foo() that is being used on other pages. I kept getting error "Cannot redeclare foo() in..." when I try to...
5
2100
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 a photo album. For each image that gets imported, I create two thumbnail images (small and medium) and insert some data into a database. The thumbnail generation process takes some time and, for relatively large amount of photos, the application...
13
1767
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 wondering how to recognize if the user presses an Escape (or even just a Shift key if that is simpler) so I may then abort the remaining foreground operations. To recognize a shift key I tried: if ((Control.ModifierKeys & Keys.Shift) ==...
2
2596
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 out the work. The order of work is as follows: 1. Retrieve the data from primary data source 2. Update UI with retrieved data - this is accomplished by passing a dataset as an event parameter
12
2300
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: Button.text = start If button.text = start then button.text = stop
2
1469
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 little amount of string and exits quickly. But what if the application does a lengthy job and outputs the progress and my C# application should be notified if the job is progressed? Should I periodically invoke ReadToEnd() in a while
0
9621
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9914
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8937
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6717
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.