HTTP 错误 500.21 - Internal Server Error 解决方案:
今天在测试网站的时候,在浏览器中输入http://localhost/时,发生如下错误:
HTTP Error 500.21 - Internal Server Error
Handler "WebServiceHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list.
在网上找了一下原因,结果是
原因:在安装Framework v4.0之后,再启用IIS,导致Framework没有完全安装
解决:开始->所有程序->附件->鼠标右键点击“命令提示符”->以管理员身份运行->%windir%Microsoft.NETFrameworkv4.0.30319aspnet_regiis.exe -i
【注:请看如下说明】
上面是别人给出的方案,但是可能问题不是上面原因导致,有可能是这个IIS站点的运行.net Freamwork的环境不是.NET 4.0环境的。所以,需要在应用程序池中配置一下即可解决此问题,如下所示: