Asp.netcore project publishing and deploying to IIS needs aspnetcore module v2

PS: the. Net framework can be directly published and can be accessed normally when specified by IIS. However, the aspnetcore project is slightly different. An additional module needs to be installed. If it is not installed, an HTTP error of 500.19 – internal server error will be reported.

1. Official version address: https://dotnet.microsoft.com/download/dotnet

Find the version 3.1 or 5.0 and click to enter.

2. Page   IIS runtime support (asp.net core module V2), that is, IIS running support needs modules. In the windows column, click download.

3. For aspnetcore 3.1, Download dotnet-hosting-3.1.15-win.exe and install it. Then you can see aspnetcore module V2 in the module of IIS

Read More: