How to TimeOut a long running Request ??

G

Guest

If I have an ASPX page that is just sleeping for 3 minutes ormore and later
does some processing and the ExecutionTimeout parameter in the machine.config
is 90 seconds then the page does not timeout after 90 seconds.
Even if the ExecutionTimeout parameter in the web.config is set or the
Server.ScriptTimeout is set in the aspx.cs still the page does not timeout
after the timeout period.
Can someone please tell us as to how we can timeout an aspx page that is
doing some lengthy processing? Also when exactly does the ExecutionTimeout
take effect?
 
W

William F. Robertson, Jr.

I am not sure if this is your situation, but I could never get a "Request
Timed Out." when I was running the browser and the server on my local
machine. I had to use my browser to hit a remote machine. My
machine.config timeout is 90 seconds, and it does timeout remotely. Are you
running everything on your local machine?

bill
 
G

Guest

I am not getting the timeout in any case whether I am ruuning the application
locally or remotely. I have tried several times. Even though the
'ExecutionTimeout' in machine.config is set to 90 seconds, the request
doesnot timeout. The 'debug' attribute in web.config is set to true. Is some
other setting required to be made? If not then what is the reason for the
timeout not happening? Could anyone please elaborate?
 
J

Juan T. Llibre [MVP]

re:
The 'debug' attribute in web.config is set to true.

'ExecutionTimeout' only applies if the debug
attribute in the compilation element is set to false.




Juan T. Llibre
===========
 
A

Alvin Bruney [MVP]

FYI:
I've never known that executionTimeout to actually work irespective of the
settings applied.
 
J

Juan T. Llibre

It seems to have worked for Indira.



Juan T. Llibre
ASP.NET MVP
===========
Alvin Bruney said:
FYI:
I've never known that executionTimeout to actually work irespective of the
settings applied.
Regards,
Alvin Bruney
 
A

Alvin Bruney [MVP]

indira,
you mind saying what you tweaked in addition to the config file setting to
get this to work?
 
G

Guest

Nothin else.
I just made sure 'executionTimeout' attribute of httpRuntime element is set
to its default value of 90 seconds in the machine.config and that it is not
being overridden in web.config.
I just needed to change the value of the 'debug' attribute to true and the
executionTimeout took effect.

Alvin Bruney said:
indira,
you mind saying what you tweaked in addition to the config file setting to
get this to work?

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Juan T. Llibre said:
It seems to have worked for Indira.



Juan T. Llibre
ASP.NET MVP
===========
 

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
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top