Application_Error Method (sender, e)

Design Pattern Framework 3.5

Design Pattern Framework 3.5 Application_Error Method (sender, e)
Patterns-In-Action! ApplicationASPNETWebApplicationGlobalApplication_Error(Object, EventArgs)
This is the last-resort exception handler. It uses te logging infrastructure to log the error details. The application will then be redirected according to the customErrors configuration in web.config.
Declaration Syntax
C# Visual Basic
protected void Application_Error(
	Object sender,
	EventArgs e
)
Protected Sub Application_Error ( _
	sender As Object, _
	e As EventArgs _
)
Parameters
sender (Object)
e (EventArgs)
Remarks
Logging is commented out. Be sure the application has privilege to to write to a file, send email, or add to the event log. Only then turn logging on.

Assembly: ASPNETWebApplication (Module: ASPNETWebApplication) Version: 1.0.0.0 (1.0.0.0)