Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > HttpServerUtility.GetLastError Timing issue?

Reply
Thread Tools

HttpServerUtility.GetLastError Timing issue?

 
 
Brendan Erwin
Guest
Posts: n/a
 
      12-02-2003
Looking for some clarification here. I'm considering using
HttpServerUtility.GetLastError in a standard errorhandler
for all my pages. (Inherits System.Web.UI.Page and
overrides OnError.) My concern is that I think there MAY
be a timing issue with the GetLastError method as it is a
method of the HttpSERVERUtility class.
When an exception is thrown within a page and triggers the
OnError method, how am I guaranteed that the exception
returned by GetLastError is the same exception that
triggered the OnError method? It seems to me, from the
location of the GetLastError method, that, if 2 pages
threw exceptions at just the right times, I could be
handling the wrong exceptions.
Thanks for any assistance.
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      12-02-2003
there is no problem. aspx page processing is context bound, and the
GetLastError uses the current context to get the error message, simular to
the Session Cache.

-- bruce (sqlwork.com)


"Brendan Erwin" <(E-Mail Removed)> wrote in message
news:0cc801c3b8e3$d539d550$(E-Mail Removed)...
> Looking for some clarification here. I'm considering using
> HttpServerUtility.GetLastError in a standard errorhandler
> for all my pages. (Inherits System.Web.UI.Page and
> overrides OnError.) My concern is that I think there MAY
> be a timing issue with the GetLastError method as it is a
> method of the HttpSERVERUtility class.
> When an exception is thrown within a page and triggers the
> OnError method, how am I guaranteed that the exception
> returned by GetLastError is the same exception that
> triggered the OnError method? It seems to me, from the
> location of the GetLastError method, that, if 2 pages
> threw exceptions at just the right times, I could be
> handling the wrong exceptions.
> Thanks for any assistance.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FireFox 1.0.6 Problem with timing out ( NEWBIE ) Ron Firefox 1 07-31-2005 10:32 PM
Wireless connection timing out =?Utf-8?B?U2FuZExhcHBlcg==?= Wireless Networking 0 12-23-2004 04:35 AM
Wireless Connection Timing Out with XP SP2 =?Utf-8?B?YW5vdGhlcmhpZ2dpbnM=?= Wireless Networking 1 12-16-2004 01:17 PM
Wireless Connection Timing Out with XP SP2 =?Utf-8?B?QW5vdGhlckhpZ2dpbnM=?= Wireless Networking 0 12-16-2004 06:09 AM
Timing Diagram to HDL Translation Kieran Francisco VHDL 9 09-17-2003 09:37 PM



Advertisments