title: ASP.NET MVC on IIS falls through to the static file handler
body: <p>I have a problem with an ASP.NET MVC site.</p>
  
  <p>These are the details:</p>
  
  <ol>
  <li>ASP.NET MVC 2</li>
  <li>ASP.NET 4 integrated pipeline</li>
  <li>IIS 7.5 on Windows Web Server 2008 R2</li>
  </ol>
  
  <p>Whenever I make a request for the app I get the "HTTP Error 404.0 - Not Found"-error and the detailed error information shows it is the static file handler that reports the error:</p>
  
  <ul>
  <li>Module: <strong>IIS Web Core</strong></li>
  <li>Notification: <strong>MapRequestHandler</strong></li>
  <li>Handler: <strong>StaticFile</strong></li>
  <li>Error Code: <strong>0x80070002</strong></li>
  </ul>
  
  <p>meaning that the request never entered the MVC stack.</p>
  
  <p>I should note that the IIS already serves a ASP.NET MVC 3 on the same app pool and a MVC 2 on a ASP.ENT 2 app pool. So it's the combo ASP.NET 2 on the ASP.NET 4 app pool that are giving me headaches.</p>
  
  <p>Basically I want to upgrade the app from ASP.NET MVC 2 on a ASP.NET 2.0 app pool to a ASP.NET MVC 2 on a ASP.NET 4.0 app pool.</p>
  
  <p>So any ideas?</p>