我的问题类似于但不完全相同:Whycan'tmyhost(softsyshosting.com)supportBeginRequestandEndRequesteventhandlers?(我还阅读了其中引用的mvolo博客)目标是在IHttpModule.Init事件(或模块内部的任何地方)中成功HookHttpApplication.BeginRequest,使用通过system.webServer配置集成的普通HttpModule,即不这样做的:入侵Global.asax或覆盖HttpApplication(该模块旨在自包含和可重用,因此例如我有这样的配置):到目前为止,我尝试将