问题
The expected order of HttpApplication methods is:
- Application_Start
- Init
- Application_BeginRequest
- Application_AuthenticateRequest
- (page life cycle)
- Application_EndRequest
I'm passing through a situation, which throws absolutely no exception, in which, after the Init, it goes directly to ApplicationEndRequest. It doesn't call Application_BeginRequest neither initiates the page life cyle.
What do I do?
回答1:
Application_EndRequest
is called but not Application_BeginRequest
when theres an unhandled exception prior to Application_BeginRequest
.
That may be on Application_Start
, the initialization of some module or at Application_Init
来源:https://stackoverflow.com/questions/3541397/in-what-situation-application-endrequest-is-called-but-application-beginrequest