Knowledgebase
How to Fix "PageHandlerFactory-Integrated" bad module "ManagedPipelineHandler in IIS7
Posted by Sean Syed on 23 February 2013 04:58 PM
HTTP Error 500.21 - Internal Server Error Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list. 

Solution:

Run "aspnet_regiis.exe" program from command line (within Command Prompt):

run %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe –i

 Note: if your computer is 64 bit, then use the following:

%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe –i

Restart IIS.

If above solution does not work for you try the other method below:

Click Start -> All Programs -> Accessories -> Run
In the Open textbox paste in the following line

For silent repair on 32 bit computer with .Net Framework version 4.0.30319 use:
%windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /q /norestart

For silent repair on 64 bit computer with .Net Framework version 4.0.30319 use:
%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /q /norestart

Click OK to start the repair
After, the repair ran for a few minutes, restart IIS.

 

(65 vote(s))
Helpful
Not helpful

Comments (10)
Siva
21 June 2013 02:58 AM
Thanks a ton
Joe Klawitter
29 July 2013 04:11 PM
This command saved the day and made it all work. I spent well over 2 days searching for this solution. Thanks!!
Mahesh P
10 August 2013 06:17 AM
Its working thanks . . .
Mahesh P
10 August 2013 06:18 AM
Its Working thanks
Firoz
05 September 2013 03:38 PM
This command is very helpful.
Thanks
Zeeshan
18 December 2013 09:49 AM
I spent a whole day to resolve This Issue.Finally after reading this post.This Issue Resolved...

Thanks Alot :)
Icode
20 February 2014 10:00 AM
it should be noted that this can also be thrown if the .Net version is pointed at "No managed code" in the app pool settings
senthil
08 April 2014 04:53 AM
Solved.. Thanks
Thamer Eses
28 April 2014 01:17 AM
Thanks
Abdallah S. Mattuhi
28 April 2014 02:56 AM
Thanks; the command made me expert!
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).