title: WebApi Application: Error 404.0, Handler StaticFile
body: <p>I just tried to deploy a WebApi application on a Windows 2008R2 with IIS 7.0, with IIS Manager untouched until now.</p>
  
  <p>The App runs on our dev server (same Win and IIS version) without hassle. On the deployment server, </p>
  
  <ul>
  <li>.NET Framework 4.5 is installed,</li>
  <li>ASP.NET Feature is installed and</li>
  <li>Windows authentication is installed</li>
  </ul>
  
  <p>When I call an URL that should map to ASP.NET, the error is</p>
  
  <pre><code>      HTTP Error 404.0
  
         Module IIS Web Code
   Notification MapRequestHandler
        Handler StaticFile
     Error code 0x80070002
  Requested URL http://localhost:80/myapp/api/GetUserConfig
  Physical Path C:\inetpub\wwwroot\myapp\api\GetUserConfig
   Logon Method Negotiate
     Logon User ADDOMAIN\Administrator
  </code></pre>
  
  <p><strong>Handler StaticFile</strong> seems important - as far as I can tell, the cause is that ASP.NET does not correctly handle the URL. Where can I start searching for the actual root of this problem?</p>
  
  <p>I should add that multiple other deployments, all in Windows 2012 environments, were successful.</p>