C# 클래스 Elmah.MsAjaxDeltaErrorLogModule

Module to log unhandled exceptions during a delta-update request issued by the client when a page uses the UpdatePanel introduced with ASP.NET 2.0 AJAX Extensions.

This module is ONLY required when dealing with v1.0.x.x of System.Web.Extensions.dll (i.e. the downloadable version to extend v2.0 of the .Net Framework)

Using it with v3.5 of System.Web.Extensions.dll (which shipped as part of v3.5 of the .Net Framework) will result in a duplication of errors.

This is because MS have changed the implementation of System.Web.UI.PageRequestManager.OnPageError

In v1.0.x.x, the code performs a brutal Response.End(); in an attempt to "tidy up"! This means that the error will not bubble up to the Application.Error handlers, so Elmah is unable to catch them.

In v3.5, this is handled much more gracefully, allowing Elmah to do its thing without the need for this module!

상속: IHttpModule
파일 보기 프로젝트 열기: clearwavebuild/elmah

공개 메소드들

메소드 설명
Dispose ( ) : void
Init ( System.Web.HttpApplication context ) : void

보호된 메소드들

메소드 설명
IsAsyncPostBackRequest ( System.Web.HttpRequestBase request ) : bool
LogException ( Exception e, System.Web.HttpContextBase context ) : void

Logs an exception and its context to the error log.

OnPageError ( object sender, EventArgs args ) : void

비공개 메소드들

메소드 설명
OnPostMapRequestHandler ( object sender, EventArgs args ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Init() 공개 메소드

public Init ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication
리턴 void

IsAsyncPostBackRequest() 보호된 메소드

protected IsAsyncPostBackRequest ( System.Web.HttpRequestBase request ) : bool
request System.Web.HttpRequestBase
리턴 bool

LogException() 보호된 메소드

Logs an exception and its context to the error log.
protected LogException ( Exception e, System.Web.HttpContextBase context ) : void
e System.Exception
context System.Web.HttpContextBase
리턴 void

OnPageError() 보호된 메소드

protected OnPageError ( object sender, EventArgs args ) : void
sender object
args System.EventArgs
리턴 void