处理程序“ExtensionlessUrlHandler-Integrated-4.0”在其模块列表中有一个错误模块“ManagedPipelineHandler”

1、在IIS上部署网站,应用程序池选择.Net Framework版本为 v4.0.30319后,打开网站报错:

HTTP 错误 500.21 - Internal Server Error
处理程序“ExtensionlessUrlHandler-Integrated-4.0”在其模块列表中有一个错误模块“ManagedPipelineHandler”
解决方法:

以管理员运行CMD执行下面的命令注册:

32位系统:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

64位系统:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

如图

 

 

2、紧接着出现: 访问报错Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\6d5a6f38\28b31280\App_global.asax.z8e9mvo3.dll' -- '拒绝访问

解决方案:

  • Cleaned the "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files" folder
  • Gave Full permissions to IIS_IUSRS group
  • Gave Full permissions to "Everone"
  • Ran the following command too: %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -i
  • 为C:\Windows\Temp"文件夹加上 IIS_IUSRS的权限

原文链接:https://blog.csdn.net/tar20131030/article/details/78296787
原文链接:https://blog.csdn.net/qq_23009105/java/article/details/86605742

posted @ 2020-07-27 11:18  Journey&Flower  阅读(714)  评论(0)    收藏  举报