I was recently developing some .net web applications at work and finally took the plunge of setting up a server to host them after I was happy that we had reached the point where they were usable applications. So after setting up Server 2008 R2, I went ahead and enabled IIS with asp.net configuration enabled along with a host of other modules enabled to support what we were after. Gave the server a reboot and everything was up and ready to go.
Moved over to my development machine and instructed Visual Studio to publish an application to this newly setup web server, everything up until this point had worked perfectly, the web app published without any errors. So I opened up Internet explorer and low and behold error, page cannot be displayed. So I’m like maybe it’s a permissions thing, remoted into the web server and viewed it as a localhost and got Error 500.21 – Internal Server Error Handler “WebServiceHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler”. I had gone ahead and configured an application pool for the web apps we were going to use, and everything seemed OK. I then remembered something, in the good old IIS 6 days you had to run a .net registration program to notify IIS you had it installed and register the handlers for .net, but thinking to myself this is now 2008 R2, come on, it couldn’t be that.
I opened up an elevated command prompt window and navigated to C:\Windows\Microsoft.NET\Framework\v4.0.30319 and ran aspnet_regiis.exe -i causing asp.net to register itself with IIS and enable the handlers required to run .net pages.
After running this command I rebooted IIS and bang the web application started working. An easy fix but a pity that it couldn’t have run automatically when I insist on installing asp.net under the IIS configuration.
Hello
thank you so much
excellent
you solved my problem.
HTTP Error 500.21 – Internal Server Error
Handler “PHP53_via_FastCGI” has a bad module “FastCgiModule” in its module list
How to rectify this problem……………
Hi umesh, simply make sure you have CGI enabled, do the following to check.
Open up your Control Panel and go to the Programs section and choose “Turn Windows features on or off”.
Under Internet Information Services, select World Wide Web Services, then Application Development Features and check the box for CGI.
Click OK and install.
Your php page should load ok now.
A quick solution to find… good work
Thanks mate.. Solved my problems 🙂 Easy fix you wouldnt think of running IIS 7.5
Thanks a lot. I was really stock.
Brilliant! Thanks!
super………….boss
worked like charm.
HTTP Error 500.21 – Internal Server Error
Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list
Thanks very much
Registered asp using cmd , but still the error persists, could not figure out how to enable handlers or reboot iis ?
thanxx
OMG!!! Thank you very much. You are the best! Problem was solved.
Great you saved my life
Thanks a lot!!
It worked.
Thank you
Thanks.!!!
got fixed…thank you very much it helped alot….great work…
thanx……..
thank a lot
Hello, thank you so much
excellent you solved my problem
thank u so much!!
it helped a lot
thank u
u solved my problem
Thank you, It was helpful.
Thanks!!! from BR