The ASPNETCoreModule which is required to host .NET Core projects in IIS does not appear to be installed

What worked for me is installing .NET Core hosting bundle from here:

http://download.microsoft.com/download/3/8/1/381CBBF3-36DA-4983-BFF3-5881548A70BE/DotNetCore.1.0.4_1.1.1-WindowsHosting.exe

Update:

Last available version can be found here

Just install it and start your project using IIS.


Since it's unclear if you are trying to host them in IIS or not (this message should only appear when you try to host it on IIS)... a shoot into the blue.

The ASPNetCoreModule isn't installed by default iirc, not even with VS2015/2017 tools. You can download and install them from the official .NET Core download page here.

You need the "Windows Server Hosting (x64 & x86)".


I got this error in Visual Studio 2019 and my solution was to run the VS installer and verify that the ASP.NET workload was installed. In my case it was not, simply installing it resolved the issue.

Exact steps to take if you want to follow my solution:

  • Open VS installer
  • Click MODIFY on the SKU of VS you were trying to use when you got the error (in my case the Preview version of VS enterprise)
  • In the list of workloads make sure ASP.NET is checked, if not check it and click install