IIS 10 App Pool Keeps Stopping due to aspnetcore.dll failed to load


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.

In event logs I see following error;


The Module DLL C:\WINDOWS\system32\inetsrv\aspnetcore.dll failed to load. The data is the error.


When I check the path C:\WINDOWS\system32\inetsrv\ I do not see aspnetcore.dll exists. Should it be there? If yes, .net core installation exe shouldn't be copy it?

Here are some information below;

<a href="https://i.stack.imgur.com/dcrcX.png" rel="nofollow"><img alt="core installed" class="b-lazy" data-src="https://i.stack.imgur.com/dcrcX.png" data-original="https://i.stack.imgur.com/dcrcX.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

<a href="https://i.stack.imgur.com/ykIbU.png" rel="nofollow"><img alt="IIS App Pool" class="b-lazy" data-src="https://i.stack.imgur.com/ykIbU.png" data-original="https://i.stack.imgur.com/ykIbU.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

<a href="https://i.stack.imgur.com/7xqm6.png" rel="nofollow"><img alt="Event Logs" class="b-lazy" data-src="https://i.stack.imgur.com/7xqm6.png" data-original="https://i.stack.imgur.com/7xqm6.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

<a href="https://i.stack.imgur.com/g33NT.png" rel="nofollow"><img alt="intesrv" class="b-lazy" data-src="https://i.stack.imgur.com/g33NT.png" data-original="https://i.stack.imgur.com/g33NT.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

What I tried, and did not worked?

<ol><li><a href="https://orcharddojo.net/blog/troubleshooting-iis-apppool-crashes-status-503-after-windows-10-anniversary-update" rel="nofollow">Troubleshooting IIS AppPool crashes</a> </li> <li>Uninstalled .net core and reinstalled.</li> <li>Changed App Pool Identity to Network Service etc.</li> </ol>

Any idea how I can fix this?


For hosting .Net Core applications in IIS, .Net CLR Version of application pool should be No Managed Code as shown in below screenshot. If you don't see "No Managed Code" option in in dropdown then you need to install .Net Core Hosting Bundle. <a href="https://i.stack.imgur.com/6rhcM.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/6rhcM.png" data-original="https://i.stack.imgur.com/6rhcM.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>


Ensure you have .NET Core Hosting Bundle installed as mentioned here: <a href="https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.1&tabs=aspnetcore2x" rel="nofollow">https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.1&tabs=aspnetcore2x</a>


  • WebResource.axd giving 403 error in ASP.Net Post backs using IIS7
  • Where is NuGet.Config file located in Visual Studio 2017 project?
  • Using Pre and Post build actions in dotnet core csproj files
  • No executable found matching command “dotnet-./..dll”
  • Can you set request timeout in asp.net core 2.0 hosted in IIS from C# code?
  • Microsoft.Web.Administration: System.UnauthorizedAccessException
  • How to check programatically that 8.3 short path name is enabled on system?
  • Batch Command Conflict
  • Jackson (JSON) throws JsonMappingException when Float is null
  • How does “boxing” work in .NET?
  • How to add System.Windows dll to Visual Studio 2010 express?
  • Send multimedia commands
  • What is the Linux Equivalent of Kernel32.dll?
  • CS1703: In Xamarin.Droid, should I use the .Net Standard windowsruntime.dll located in Mono.Framewor
  • Deploying a CodeRush plugin from the Community Site
  • Available space left on drive - WinAPI - Windows CE
  • Translating C# to PowerShell in InterIMAP
  • npm 5.4.1 install/uninstall all failing
  • C# program and C++ DLL compiled for 32-bit system crash on 64-bit system
  • Problems installing Yesod for Haskell
  • Loading .coffee files via a view in Rails
  • Unable to install Git-core+svn by MacPorts
  • Eclipse CDT error: Unable to compile
  • Create DicomImage from scratch using Dcmtk
  • Very simple C++ DLL that can be called from .net
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • How to avoid particles glitching together in an elastic particle collision simulator?
  • Recording logins for password protected directories
  • ilmerge with a PFX file
  • Splitting given String into two variables - php
  • Sony Xperia Z Tablet not found by adb
  • Check if a string to interpolate provides expected placeholders
  • Javascript convert timezone issue
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • How do you join a server to an Active Directory (domain)?
  • embed rChart in Markdown
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • How can I use `wmic` in a Windows PE script?
  • Unable to use reactive element in my shiny app
  • How to load view controller without button in storyboard?