新安装了一台Win 2016 服务器,部署网站提示如下:
在cmd窗口中执行了:%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers
提示配置源:modules也有类似的错误
又执行了:%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules
还报错误:HTTP 错误 500.21 - Internal Server Error
处理程序“ExtensionlessUrlHandler-Integrated-4.0”在其模块列表中有一个错误模块“ManagedPipelineHandler”
cmd窗口执行了:
dism /online /enable-feature /featurename:IIS-
dism /online /enable-feature /featurename:IIS-ISAPIFilter
dism /online /enable-feature /featurename:IIS-ISAPIExtensions
dism /online /enable-feature /featurename:IIS-NetFxExtensibility45
dism /online /enable-feature /featurename:IIS-ASPNET45