title: IIS 10 App Pool Keeps Stopping due to aspnetcore.dll failed to load
body: <p>I have an asp.net core 2.0 hosted locally on IIS 10. For some reason DefaultAppPool keeps stopping as soon as I hit the hosted website. 
  And I am getting HTTP Error 503. The service is unavailable. </p>
  
  <p>In event logs I see following error;</p>
  
  <blockquote>
    <p>The Module DLL C:\WINDOWS\system32\inetsrv\aspnetcore.dll failed to
    load.  The data is the error.</p>
  </blockquote>
  
  <p>When I check the path <code>C:\WINDOWS\system32\inetsrv\</code> I do not see <code>aspnetcore.dll</code> exists. Should it be there? If yes, .net core installation exe shouldn't be copy it?</p>
  
  <p>Here are some information below;</p>
  
  <p><a href="https://i.stack.imgur.com/dcrcX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dcrcX.png" alt="core installed"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ykIbU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ykIbU.png" alt="IIS App Pool"></a></p>
  
  <p><a href="https://i.stack.imgur.com/7xqm6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7xqm6.png" alt="Event Logs"></a></p>
  
  <p><a href="https://i.stack.imgur.com/g33NT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g33NT.png" alt="intesrv"></a></p>
  
  <p>What I tried, and did not worked?</p>
  
  <ol>
  <li><a href="https://orcharddojo.net/blog/troubleshooting-iis-apppool-crashes-status-503-after-windows-10-anniversary-update" rel="nofollow noreferrer">Troubleshooting IIS AppPool crashes</a> </li>
  <li>Uninstalled .net core and reinstalled.</li>
  <li>Changed App Pool Identity to Network Service etc.</li>
  </ol>
  
  <p>Any idea how I can fix this?</p>