title: IIS 8.5 is not serving JS, CSS, and Image files (static content)
body: <h1>The problem</h1>
  
  <p>We're running IIS on Windows 8.1 with Update. We're at the Orchard CMS first time setup screen, and IIS is giving 401s for all static content. We have read the following to no avail: </p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/3771831/iis-7-5-no-images-css-js-showing">IIS 7.5 no images css js showing</a></li>
  <li><a href="https://stackoverflow.com/questions/3771831/iis-7-5-no-images-css-js-showing">IIS 7.5 no images css js showing</a></li>
  <li><a href="http://docs.orchardproject.net/documentation/Building-and-deploying-Orchard-from-a-source-code-drop" rel="noreferrer">The official Orchard deployment documentation</a></li>
  </ul>
  
  <p>Based on those, this is what I have tried that <strong>doesn't work</strong>.</p>
  
  <ol>
  <li>Turn on the IIS feature to Serve Static Content. </li>
  <li>Give <strong>IIS_IUSRS</strong> permission to Read, write &amp; execute.</li>
  <li>Give the site's <strong>application pool</strong> permission to Read, write &amp; execute. </li>
  </ol>
  
  <p>What <strong>does work</strong> though is the nuclear option: to give <strong>Everyone</strong> the Read permission (unless we want to proceed with the Orchard setup; then we need to give Everyone even more permissions.) That leads me to believe that I must give permission to some principle with less scope than Everyone but more scope than both IIS_IUSRS and the application pool combined.</p>
  
  <p>Who/what is that principle?</p>
  
  <h1>Pictures to show the problem</h1>
  
  <p>We receive a 401 on ..\Themes\SafeMode\Styles\site.css 
  <img src="https://i.stack.imgur.com/xzo5O.png" alt="Themes\SafeMode\Styles\site.css has a 401"></p>
  
  <p>The task manager confirms that the site is running as the orchard user.
  <img src="https://i.stack.imgur.com/iMKMI.png" alt="The IIS website is running as the orchard app pool"></p>
  
  <p>The security properties of the ..\Themes\SafeMode\Styles\ directory gives Read permission to orchard.
  <img src="https://i.stack.imgur.com/4UC0c.png" alt="The orchard app pool has write permission not to mention read."></p>
  
  <p>Why does it only work when we give Read permission to Everyone?</p>