How to make a page run long time.

R

Rabbit63

Hi:

There is a function in the code-behind of one my page, which will run a
long time (almost 9 hours). How can I make the page run so long?

In the codebehind, I set:

Page.Session.Timeout=54000
Page.Serever.ScriptTimeout=54000

But no use. It was terminated after ~4 hours.

What can I do?

Thanks

Q.
 
P

Peter Rilling

You might want to change your architecture and maybe hand off the task to
something like a windows service.

The website should just be there to kick off the action and check the
status, the service would continue to work independent of IIS or IE.
 
P

Peter Rilling

Is it really wise to leave a thread running when the page has stopped
processing. I can definitely see the potential for problems such as being
hard to debug and not being under the control of the system administrator.
 
S

S. Justin Gengo

It shows up as a process just like any other... So the sys admin could kill
it.

As far as debugging, same thing. Yes, it's more difficult, we're talking
about a much more entailed process here, but there are ways to debug and
watch any thread.

For what you're talking about doing it's the only way I can think of.
Because there is no web browser client / server combination in the world
that I know of that will run as long as you want it to.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,433
Messages
2,571,683
Members
48,796
Latest member
Greg L.

Latest Threads

Top