473,498 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Long running requests terminate -- should I start a process on the server instead?

Hi!

On my ASP.NET web site I do some operations that takes several minutes to
handle. I.e. one action shall generate a file from some data in our
database. The action takes about 5 minutes to complete. The problem is that
the users of our system are not on our network and somewhere along the way
the request gets terminated when say three minutes has passed.

What I would like to know is if anyone has some ideas or references to how
we may solve this.

I'm thinking about making a conslole application that will be started from
the ASP.WEB app and run as a separate process. The user will be served a
page that will postback automatically every five seconds and check if the
console app has completed the action. If the action is completed the user
will be served the result otherwize the same page which will postback and
check the console app etc.

I'm also considering to write a NT service instead of a console app.

Does anyone have any ideas? Has anyone done anything like this? Does anyone
have any references, links? Pros/cons? Sequrity issues?

cheers,
mortb
Jan 9 '06 #1
2 1469
mortb,
Here is one solution:
http://www.eggheadcafe.com/articles/20051223.asp

There are many others.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"mortb" wrote:
Hi!

On my ASP.NET web site I do some operations that takes several minutes to
handle. I.e. one action shall generate a file from some data in our
database. The action takes about 5 minutes to complete. The problem is that
the users of our system are not on our network and somewhere along the way
the request gets terminated when say three minutes has passed.

What I would like to know is if anyone has some ideas or references to how
we may solve this.

I'm thinking about making a conslole application that will be started from
the ASP.WEB app and run as a separate process. The user will be served a
page that will postback automatically every five seconds and check if the
console app has completed the action. If the action is completed the user
will be served the result otherwize the same page which will postback and
check the console app etc.

I'm also considering to write a NT service instead of a console app.

Does anyone have any ideas? Has anyone done anything like this? Does anyone
have any references, links? Pros/cons? Sequrity issues?

cheers,
mortb

Jan 9 '06 #2
Thanks a lot!

/mortb

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:10**********************************@microsof t.com...
mortb,
Here is one solution:
http://www.eggheadcafe.com/articles/20051223.asp

There are many others.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"mortb" wrote:
Hi!

On my ASP.NET web site I do some operations that takes several minutes to
handle. I.e. one action shall generate a file from some data in our
database. The action takes about 5 minutes to complete. The problem is
that
the users of our system are not on our network and somewhere along the
way
the request gets terminated when say three minutes has passed.

What I would like to know is if anyone has some ideas or references to
how
we may solve this.

I'm thinking about making a conslole application that will be started
from
the ASP.WEB app and run as a separate process. The user will be served a
page that will postback automatically every five seconds and check if the
console app has completed the action. If the action is completed the user
will be served the result otherwize the same page which will postback and
check the console app etc.

I'm also considering to write a NT service instead of a console app.

Does anyone have any ideas? Has anyone done anything like this? Does
anyone
have any references, links? Pros/cons? Sequrity issues?

cheers,
mortb

Jan 9 '06 #3

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

Similar topics

2
3152
by: Bob Murdoch | last post by:
I'm developing an intranet application using W2k server and IE5.5 - 6.x clients. I've got one particular function that calls a stored procedure to update a number of records, depending on user...
8
2752
by: Jonathan Heath | last post by:
Hi all, I have created an ASP script that enters data into an Access Database. My problem is that I'd like this script to run when the computer is shutdown or the user logs off. I think...
1
2019
by: Marc | last post by:
I want to write a C#/ASP.NET application where a user can go to a web page, start running a job, close their browser, and then come back later and see the results. The purpose for this application is...
9
2133
by: Adrian Dragomirescu | last post by:
Hello, I have the following problem: In my ASPX page is a button called "Import". The action of this button is to import a set of data in my database. I have to import big datasets and this...
5
2475
by: merry.sailor | last post by:
Hello, I am using python and CGI to initiate a long running simulation (up to 5h long) on a remote machine. The main idea is that I use a form, enter the parameters and a CGI scripts start the...
4
1951
by: ImSoLost | last post by:
I'm running a really long process from ASP.NET and need some help... I am making a method call when the user presses a button from my webpage, which goes into a database and parses a file. This...
0
1296
by: ob | last post by:
The situation I have is that I have a long running process (that takes 15 min to process) kicked off from an ASP.NET page. I launch a thread and kick of the process and return instantly. I store...
0
866
by: ob | last post by:
The situation I have is that I have a long running process (that takes 15 min to process) kicked off from an ASP.NET page. I launch a thread and kick of the process and return instantly. I store...
22
3794
by: V S Rawat | last post by:
(bringing the discussion here for php.general) I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b. http://localhost/ is E:\wamp\www\ I have put the first php script...
0
7125
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
7002
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
7165
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,...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5462
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,...
1
4910
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
291
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...

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.