469,609 Members | 1,574 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

How to handle Request Timed Out Error?

nms
I've an ASP.net web site, Since last some days, Users are experiencing
problem when they try to generate reports (for a large date range)

it says,

Request timed out.
Description: An unhandled exception occurred during the execution of
the
current web request. Please review the stack trace for more
information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request timed out.

Source Error:

An unhanded exception was generated during the execution of the
current web
request. Information regarding the origin and location of the
exception can
be identified using the exception stack trace below.
HOWEVER,

I've put an error handling for each sub as well as one in global.asax
Application_Error() too.

Still I'm not able to catch this error!!

I don't want my users to see the ugly error page.

Can you help me out ?

thanks in advance.

Apr 6 '07 #1
3 17633
I was going to write a blog entry for you and point you to it, but it looks
as though Peter has already written a very nice article on the topic:

http://www.eggheadcafe.com/articles/20051228.asp

He's a smart guy and would probably just respond to you via this group
anyway. That should help you out, though. If you need any further
assistance, feel free to ask any of us.

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
<nm*@bioenabletech.comwrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...
I've an ASP.net web site, Since last some days, Users are experiencing
problem when they try to generate reports (for a large date range)

it says,

Request timed out.
Description: An unhandled exception occurred during the execution of
the
current web request. Please review the stack trace for more
information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request timed out.

Source Error:

An unhanded exception was generated during the execution of the
current web
request. Information regarding the origin and location of the
exception can
be identified using the exception stack trace below.
HOWEVER,

I've put an error handling for each sub as well as one in global.asax
Application_Error() too.

Still I'm not able to catch this error!!

I don't want my users to see the ugly error page.

Can you help me out ?

thanks in advance.

Apr 7 '07 #2
You know what? I just noticed that I think I responded to your entry too
quickly, youre not dealing with session timeout, but request timeout.

Have you tried simply tweaking the executionTimeout setting or using the
Server.ScriptTimeout property to modify the timeout settings for your web
application? The ASP.net runtime will respond to a request that takes longer
than expected by throwing a ThreadAbortException for the thread currently
working on the request. I'm honestly not sure that ThreadAbortExceptions are
actually caught by the global exception handler because they are needed by
certain low-level processes within the ASP.net runtime....my memory is foggy
in this area, though.

....please let me know if any of this works. Thanks.

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
<nm*@bioenabletech.comwrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...
I've an ASP.net web site, Since last some days, Users are experiencing
problem when they try to generate reports (for a large date range)

it says,

Request timed out.
Description: An unhandled exception occurred during the execution of
the
current web request. Please review the stack trace for more
information
about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request timed out.

Source Error:

An unhanded exception was generated during the execution of the
current web
request. Information regarding the origin and location of the
exception can
be identified using the exception stack trace below.
HOWEVER,

I've put an error handling for each sub as well as one in global.asax
Application_Error() too.

Still I'm not able to catch this error!!

I don't want my users to see the ugly error page.

Can you help me out ?

thanks in advance.

Apr 7 '07 #3
nms
Hello Ben,

as i said, i've put an error handler in Application_Error() as well.

why it's not being trapped there?!!

p.s. thanks for your reply!
Apr 7 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by laks | last post: by
1 post views Thread by yRudi | last post: by
1 post views Thread by Dorte | last post: by
reply views Thread by Brian Pearson | last post: by
1 post views Thread by WestG | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.