Getting HTTP Error 500.21 - Internal Server Error

andy - 23 Aug, 2016 5647 Views 1 Comment

When you try to run MVC site or ASP.Net framework 4 website, if you receive the following error: HTTP Error 500.21 - Internal Server Error. Saying Handler "ExtensionlessUrlHandler-Integrated-4.0" has a bad module "ManagedPipelineHandler" in its module list. It means the ASP.Net has not been properly registered on your IIS.

To fix this issue, you can run the following command in your cmd prompt.

c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

Once it has been installed successfully, try to re-run the website again.


13 Nov, 2019
For me still the issue in same. IT is working in debug visual studio 2019 But when try to host on iis10 it was not working
Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.

Related Articles

How to allow loading and downloading json file in IIS?

In order to allow loading and downloading json file on your site you have to add json extension in mime type and handler mappings in IIS windows server By default this extension is not view able Therefore you will need ...