title: HTTP Error 500.0 on StaticFile when using custom identity for AppPool
body: <p>I have an MVC4 web application deployed on a Windows 2012 R2 server with IIS 8.5.
  I configured the Application Pool to run with a custom domain account because the web application needs to call another webservice on the network with Windows authentication enabled.</p>
  
  <p>When i try to reach the page from my browser, i get many "error 500" for my .css, .js files.
  When i try to browse directly to one of these files, i get an "HTTP Error 500.0 - Internal Server Error" page displayed instead of the content of the script or css. I tried with a simple .txt file, and i get the same error.</p>
  
  <p>Detailed Error Information:</p>
  
  <ul>
  <li>Module : IIS Web Core</li>
  <li>Notification : AuthenticateRequest</li>
  <li>Handler : StaticFile</li>
  <li>Error Code : 0x80070542</li>
  <li>Requested URL : http://{hostname}:8082/test.txt</li>
  <li>Physical Path : C:\inetpub\wwwroot\aaa\test.txt</li>
  <li>Logon Method : Negotiate</li>
  <li>Logon User : {DomainName}\{MyUserLogin}</li>
  </ul>
  
  <p>On the server i gave full NTFS permissions to "Everyone" for the entire C:\inetpub\wwwroot\aaa folder and child folders.</p>
  
  <p>I made the account running the Application Pool part of the local "Administrators" group. It does not change anything, i still get the same error message.</p>
  
  <p>However, if i open the web page directly from the server with localhost, everything works fine.</p>
  
  <p>So i am running out of ideas here.
  Any suggestions ?</p>
  
  <p>Thanks !</p>