Loading ...

Error 500.21, Managed Pipeline Handler, Bad Module | CodeAsp.Net

Error 500.21, Managed Pipeline Handler, Bad Module

0 (0votes)

After installation of  IIS 7 as discussed in my last blog , if you get an error 500.19 or 500.21 while running localhost follow the steps mentioned below.

For Error 500.19 (Do not have sufficient permission): This simply means you have not started your Visual Studio through administrator. To use IIS web server you have to launch Visual Studio as an administrator.

For Error 500.21 : IIS managed handler can not be configured in classic mode. Therefore, you should run application pool managed pipeline handler of IIS in integrated mode.

This can be done in two ways :

  •  Launch IIS manager (For reference look up Install IIS blog).
  • In the left panel, look for your website in "Sites". Right click on it and go to Manage Website>Advanced Settings
  • Note down the name of application pool you are using.
  • Now go to "Application Pools" on the left panel, right click on the application pool that you were using (noted down) and go to Basic Settings.
  • Set Managed Pipeline Mode to Integrated.
  • Click OK.


  • Run your Command prompt as administrator
  • run following command in it %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i or use Framework64 instead of Framework if it doesn't work.

Comments (no comments yet)

Top Posts