Alex Rivera | Logout

Which ASP.NET life cycle events fire after HttpApplication.Error?

Asked 2010-11-02T15:23:30.510
15

I want to know which parts of the ASP.NET request life cycle happen after an error is handled via the HttpApplication.Error event. Specifically, which of the events listed at http://msdn.microsoft.com/en-us/library/bb470252.aspx#Stages fire after an error? I know that EndRequest still fires, and I suspect that PreSendRequestHeaders and PreSendRequestContent fire as well, but aside from these I have no idea.

Does it depend on when in the life cycle the error occurs? Does it depend on whether I call Server.ClearError() in the error handler?

I'm asking this question because I don't know if I should be calling HttpApplication.CompleteRequest() from my error handler.

Edit
Report

2 Answers

0

I didn't check, but I think it depends.

An error can be raised in any page event (Init/Load/PreRender). After the error is raised, if you clear the error, the page lifecycle is continued from where it was.

answered 2012-03-20T18:50:13.427
0
answered 2012-08-26T16:52:01.860

Your Answer