In what situation Application_EndRequest is called but Application_BeginRequest is not called?

吃可爱长大的小学妹 提交于 2020-01-24 03:22:12

问题


The expected order of HttpApplication methods is:

  1. Application_Start
  2. Init
  3. Application_BeginRequest
  4. Application_AuthenticateRequest
  5. (page life cycle)
  6. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!