title: Global.asax Application_BeginRequest not firing unless physical file exists - 404
body: <p>I use URL rewriting (<code>HttpContext.Current.RewritePath(...)</code>) inside Global.asax so the physical files mostly don't exist.
  Everything was working fine until I had to remove site from IIS (8.5) and add it again.</p>
  
  <p>And now I get 404 not found for every request. Example <code>http://localhost/site/article123</code>
  And Global.asax <code>Application_BeginRequest</code> event not even firing.</p>
  
  <p>If I however will add empty default.aspx file in folder <code>/site/article123</code> everything starts to work fine with URL being correctly rewritten.</p>
  
  <p>Files have not changed, so it's ought to be the problem with IIS configuration.</p>
  
  <p>I do have following inside web.config: <br />
  <code>&lt;modules runAllManagedModulesForAllRequests="true"&gt;</code></p>
  
  <p>Project in IIS is set as an Application with Application Pool .NET v2.0 Classic</p>
  
  <p><strong>Edit:</strong> <br />
  Same story in IIS 8.0</p>