title: IIS: ApplicationPool stops on web site access
body: <p>I have a strange issue. I searched almost through the entire web and got many clues. However, I am not able to solve the issue.</p>
  
  <p>---Problem Description---
  If I create a new site IIS default configuration creates and assigns a custom application pool to that site. For instance, if my site has the name <strong>MyNewSite</strong> the respective app pool that is created will have the same name. If I attempt to access the site the application pool stops/crashes and I will get <em>HTTP Error 503. The service is unavailable.</em> Additionally I observed that IIS attempts to create a directory with the name C/Users/<strong>MyNewSite</strong> but it vanishes shortly after it appeared. I remember I deleted these folders like these manually in the past without knowing they are related to IIS.</p>
  
  <p>---Configuration---
  Windows 10 - IIS 10</p>
  
  <p>ApplicationPool <strong>MyNewSite</strong> uses Identity <em>ApplicationPoolIdentity</em> and Load User Profile is <em>true</em>. </p>
  
  <p><a href="https://i.stack.imgur.com/m4Nwx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m4Nwx.png" alt="AppPool-Configuration"></a></p>
  
  <p>The directory has the approbiate permissions for users
  IUSR and IIS_IUSRS. Both have the same permissions.</p>
  
  <p><a href="https://i.stack.imgur.com/TCQmj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TCQmj.png" alt="Directory Permissions"></a></p>
  
  <p>The application directory is not located under the inetpub directory.</p>
  
  <p>---Observations---</p>
  
  <p>Running the site under App Pool <strong>DefaultAppPool</strong> seems to work. <strong>DefaultAppPool</strong> has the Identity <em>NetworkService</em> and Load User Profile is <em>true</em>.</p>
  
  <p>Event Log shows following Error:</p>
  
  <p>Log Name:      System
  Source:        Microsoft-Windows-WAS
  Date:          24.05.2018 18:58:44
  Event ID:      5002
  Task Category: None
  Level:         Error
  Keywords:      Classic
  User:          N/A
  Computer:      MY_PC
  Description:
  Application pool '<strong>MyNewSite</strong>' is being automatically disabled due to a series of failures in the process(es) serving that application pool.</p>
  
  <p>Event Xml:
      
        
          
          5002
          0
          2
          0
          0
          0x80000000000000
          
          104222
          
          
          System
          MY_PC
          
        
        
          <strong>MyNewSite</strong>
          
          
        
      </p>
  
  <p>---Attempts to solve the issue---
      - Reinstall IIS and Windows Process Activation Service.
      - Deleted Users in registry that corresponded to the user directories I removed accidently.
      - Additionally add IIS AppPool\<strong>MyNewSite</strong> and IIS AppPool\<strong>DefaultAppPool</strong> to folder permissions.</p>
  
  <p>---Current Assumption---
  It seems to be related to the virtual users IIS tries to create, but I don't understand why it fails to create them. I understand a workaround would be the NetworkService identity but it has worked before and I don't want to use this workaround forever.</p>