How can I get Application_BeginRequest to process every single request, including static files?
Global.ascx.cs
protected void Application_BeginRequest()
{
}
I currently have this on my web.config
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
</modules>
</system.webServer>
I am using II7 and my application pool is integrated as a managed pipeline mode.
In this current state, it fires an event for .aspx pages, but not for files such as images.
source
share