Bill
Bill

Reputation: 1195

Trying to add .NET Core 2.1 to my local IIS

I'm looking to add .NET Core 2.1 to my local IIS but not seeing it show up. Core installed but not showing in IIS. Steps below:

> Download:    https://dotnet.microsoft.com/download/dotnet
> .Net Core 2.1 > Windows x64 > MSI version
> Reboot
> looking in IIS (IIS > default website > Features View > Modules)

I'm expecting "AspNetCoreModule" to show up in the list but nothing listed.

Upvotes: 0

Views: 1515

Answers (1)

Dai
Dai

Reputation: 154995

Don't use https://dotnet.microsoft.com/download/dotnet to install .NET Core for IIS, as the page (as of June 2021) only links to the desktop runtime, not the edition for IIS.

Instead you need the "Hosting Bundle" aka "ASP.NET Core Runtime" instead, which is linked to from https://dotnet.microsoft.com/download/dotnet/2.1

The current link for the Hosting Bundle for .NET Core 2.1 is https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-aspnetcore-2.1.28-windows-hosting-bundle-installer

Afterwards, you need to ensure that your website's web.config (not your application's web.config) (and possibly your applicationHost.config) are using AspNetCoreModuleV2 (and not AspNetCoreModule).


Additionally, you should ensure your "Windows Features" settings (or "Roles and Features" on Windows Server) have the requisite features enabled, such as ISAPI Extensions and ISAPI Filters.

Upvotes: 1

Related Questions