I'm hosting ASP.NET Core 2 site and getting below error message.
HTTP Error 500.21 - Internal Server Error
Handler "aspNetCore" has a bad module "AspNetCoreModule" in its module list
My application is using nopCommerce 4.00 and server side already ASP.NET Core component is installed.
I was facing the same issue after following this blog on how to host an asp.net core app into IIS. Visual studio had added the following web.config in the published output folder.
Then I looked into my IIS module to check if the .NET core hosting bundle was installed properly and I saw this,
So I changed the module in web.config,
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
and it worked without any issues after that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With