此文来自:http://blog626.blog.163.com/blog/static/105610732201051591450870/
搭建IIS时出现如下错误:
HTTP Error 500.21 - Internal Server Error
Handler "WebServiceHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list.
![](https://images0.cnblogs.com/blog/312872/201409/181639227373604.jpg)
原因:在安装Framework v4.0之后,再启用IIS,导致Framework没有完全安装
解决办法:开始->所有程序->附件->鼠标右键点击“命令提示符”->以管理员身份运行->%windir%Microsoft.NETFrameworkv4.0.30319aspnet_regiis.exe -i
或:安装C:WindowsMicrosoft.NETFrameworkv4.0.30319aspnet_regiis -i 了后,将该网站的应用程序池改成“集成”的就可以了