HTTP500.21 and ASP .NET registration with IIS

Q - are you seeing something like ASP.NET IIS 7.5 HTTP 500.21 error or HTTP 500.21 Internal Server Error

  • check if you have .NET (v4) registered with IIS?
  • If not run the following commands accordingly:

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

OR

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i