This post shows you How to fix "Handler “aspNetCore” has a bad module “AspNetCoreModuleV2” in its module list" when deploying your ASP.NET Core on IIS.

You need to Install .Net Core 2.2 or 3.0 run-time bundle on hosting machine.

Or

Publish your project as self-contained by right-clicking on your project, then select Publish.

Next, Click Edit => Select Settings

publish asp.net core

At Deployment Mode combobox, you should select Self-Contained.

Open your Web.config file, then change AspNetCoreModuleV2 to AspNetCoreModule as shown below.

<handlers>
  <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>