【发布时间】:2012-05-03 03:53:58
【问题描述】:
我的示例项目中有一个图像文件。我正在尝试以下网址。
我的Global.asax 文件中有一个Application_BeginRequest event。
protected void Application_BeginRequest(Object sender, EventArgs e)
{
}
查询 - 当我通过直接输入上面的 URL 来请求上面的图像时,这个事件不会被触发。
FROM MSDN - HttpApplication.BeginRequest Event - 当 ASP.NET 响应请求时,作为 HTTP 执行管道链中的第一个事件发生。
I want to make my all request to fire `Application_BeginRequest` Event
【问题讨论】:
-
检查您是否确实在使用带有集成应用程序池的 IIS7。