500.21 Error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Running into a 500.21 error, HTTP Error 500.21 - Internal Server Error
Handler "aspNetCore" has a bad module "AspNetCoreModule" in its module list

I have aspNetCore installed and it should be fine. I installed it with web bundle and removed and re-installed already. Still same error, I tried to change the path on the web.config file but it started to give me a 400 error.
I'm installing the non-source code version of 4.20 on my local machine.
4 years ago
Okay I figured it out.
Leaving this for anyone who has trouble with this in the future.
Quick recap:
I was installing the non-dev version locally.
After installing the web hosting bundle and gave the proper permissions
I got a 500.21 error.
The issue was in the web.config file.
If you go to your IIS, click Home, then under IIS there is a "module" icon.
Click on that.
It'll take you to a list of all the modules. You will want to look at
AspNetCoreModule
for me it was AspNetCoreModuleV2
Open your web.config file.
In the web.config file look for this line:
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
The default is modules is "AspNetCoreModule", if you have V2 then change to look like the line below:
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
You want to match the two.
That took care of it for me.
4 years ago
Thanks, it helped me to solve the problem
4 years ago
AspNetCoreModule to AspNetCoreModuleV2 solved my problem. Thank you.
3 years ago
Thank you very match, it helped me
2 years ago
Based on the nopcommerce version, version ASP.NET Core  Runtime   Windows Hosting Bundle  must be installed .for instance nopcommerce 4.2 require  ASP.NET Core 2.2 Runtime  - Windows Hosting Bundle .
Click module on iis .You can check if AspNetCoreModuleV2  is installed
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.