[英]In what situation Application_EndRequest is called but Application_BeginRequest is not called?
The expected order of HttpApplication methods is: HttpApplication方法的预期顺序是:
I'm passing through a situation, which throws absolutely no exception, in which, after the Init, it goes directly to ApplicationEndRequest. 我正在通过一个情况,它绝对没有异常,在Init之后,它直接进入ApplicationEndRequest。 It doesn't call Application_BeginRequest neither initiates the page life cyle. 它不会调用Application_BeginRequest也不会启动页面生命周期。
What do I do? 我该怎么办?
Application_EndRequest
is called but not Application_BeginRequest
when theres an unhandled exception prior to Application_BeginRequest
. Application_EndRequest
被称作但不是Application_BeginRequest
闭上眼睛,之前未处理的异常Application_BeginRequest
。
That may be on Application_Start
, the initialization of some module or at Application_Init
这可能是在Application_Start
,某些模块的初始化或Application_Init
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.