473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Request Timeout Error Question

Here's what happening:

- I have a global error trap set in global.asax defined as:
protected void Application_Error(Object sender, EventArgs e) {
HttpContext.Current.Server.Transfer("/salesnow/errors/SalesNow_Error.aspx"); }

- My users are on occassion are getting the error:
"Server Error in '/Salesnow' Application - Request timed out."

- No aspx page is referenced anywhere in the *ugly* default error page.

- My error trap is designed to e-mail me notices of errors.

- I am seeing about twice as many errors logged in the Win2003 PerfMon window for the web servers (as e-mails).

- Is this happening because my re-directed error page is timing out? What is the best way to trap for this?

TIA,
Steve
Nov 18 '05 #1
3 2299
In your Application_Error, you need to call Server.ClearError() or the error
will still be sitting there and be sent to the default error page.

Server.GetLastError() will also return the exception chain that caused the
error.

HTH,

bill
"Steve Taylor" <Re************@laborready.com> wrote in message
news:u%****************@tk2msftngp13.phx.gbl...
Here's what happening:

- I have a global error trap set in global.asax defined as:
protected void Application_Error(Object sender, EventArgs e) {

HttpContext.Current.Server.Transfer("/salesnow/errors/SalesNow_Error.aspx");
}

- My users are on occassion are getting the error:
"Server Error in '/Salesnow' Application - Request timed out."

- No aspx page is referenced anywhere in the *ugly* default error page.

- My error trap is designed to e-mail me notices of errors.

- I am seeing about twice as many errors logged in the Win2003 PerfMon
window for the web servers (as e-mails).

- Is this happening because my re-directed error page is timing out? What
is the best way to trap for this?

TIA,
Steve
Nov 18 '05 #2
So you're say that I should immediately execute "Server.ClearError()" and
then within my error processing page access the most recent error by by
calling Server.GetLastError()?

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in message
news:Og*************@TK2MSFTNGP12.phx.gbl...
In your Application_Error, you need to call Server.ClearError() or the error will still be sitting there and be sent to the default error page.

Server.GetLastError() will also return the exception chain that caused the
error.

HTH,

bill
"Steve Taylor" <Re************@laborready.com> wrote in message
news:u%****************@tk2msftngp13.phx.gbl...
Here's what happening:

- I have a global error trap set in global.asax defined as:
protected void Application_Error(Object sender, EventArgs e) {

HttpContext.Current.Server.Transfer("/salesnow/errors/SalesNow_Error.aspx"); }

- My users are on occassion are getting the error:
"Server Error in '/Salesnow' Application - Request timed out."

- No aspx page is referenced anywhere in the *ugly* default error page.

- My error trap is designed to e-mail me notices of errors.

- I am seeing about twice as many errors logged in the Win2003 PerfMon
window for the web servers (as e-mails).

- Is this happening because my re-directed error page is timing out? What
is the best way to trap for this?

TIA,
Steve

Nov 18 '05 #3
What I do for my error logging. (psuedo code)

Application_Error
Exception ex = Server.GetLastError();
Server.ClearError();
LogError( ex );
Session["ApplicationError"] = ex; //this will save it in session so I can
pull it from the
Response.Redirect( "ErrorPage.aspx", true ); //I am sure you could use
Server.Transfer, but we don't use Server.Transfer.
--in my ErrorPage

Page_Load
Exception ex = Session["ApplicationError"] as Exception
//display the exception.
This isn't exactly what I do; I switch off the exception type and have
different directions depending on the type of error.

bill

"Steve Taylor" <Re************@laborready.com> wrote in message
news:O8**************@TK2MSFTNGP15.phx.gbl...
So you're say that I should immediately execute "Server.ClearError()" and
then within my error processing page access the most recent error by by
calling Server.GetLastError()?

"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in message
news:Og*************@TK2MSFTNGP12.phx.gbl...
In your Application_Error, you need to call Server.ClearError() or the

error
will still be sitting there and be sent to the default error page.

Server.GetLastError() will also return the exception chain that caused the error.

HTH,

bill
"Steve Taylor" <Re************@laborready.com> wrote in message
news:u%****************@tk2msftngp13.phx.gbl...
Here's what happening:

- I have a global error trap set in global.asax defined as:
protected void Application_Error(Object sender, EventArgs e) {

HttpContext.Current.Server.Transfer("/salesnow/errors/SalesNow_Error.aspx");
}

- My users are on occassion are getting the error:
"Server Error in '/Salesnow' Application - Request timed out."

- No aspx page is referenced anywhere in the *ugly* default error page.

- My error trap is designed to e-mail me notices of errors.

- I am seeing about twice as many errors logged in the Win2003 PerfMon
window for the web servers (as e-mails).

- Is this happening because my re-directed error page is timing out? What is the best way to trap for this?

TIA,
Steve


Nov 18 '05 #4

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

Similar topics

2
by: Dicky Cheng | last post by:
Hi, I am using .net remoting technology. I set up a .net remoting client and server in IIS. When the client calls the server, the server will run a long duration method (30-60seconds). I have a...
0
by: Steve | last post by:
Hi All, I keep getting the "System.Web.HttpException: Request timed out." error message when I was uploading image files (about 400 image files) to SQL table, all those image files are FTP to...
2
by: William F. Robertson, Jr. | last post by:
Some of my users are receiving an error: Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Request timed out. Description: An...
1
by: Samuel Stanojevic | last post by:
- I'm using .NET Framework 1.1. I just noticed that whenever I change the value of Session.Timeout (no matter which aspx page this happens on), at the end of the request, the 'Session_End'...
0
by: Brian Pearson | last post by:
Hi, I'm wondering how I can find out when a request timeout has occurred and handle it programmatically. Here's is what I have so far: // This handler is added to the web application's...
2
by: archana | last post by:
Hi all, I am processing asynchronous web request with setting timeout using RegisterWaitForSingleObject. On beginwebrequest i am sending address of one callback which i want to execute when...
3
by: nms | last post by:
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...
2
by: webdevaccount | last post by:
Hello, I am using a Timer and an UpdatePanel control. The Timer is set to 1000 milliseconds, and therefore results in many server request timeouts error (logical). The Server Request Timeout...
5
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request...
3
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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,...
0
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...
0
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,...
0
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...

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.