发布网站到本地IIS出错

错误:

发布网站到本地IIS出错_第1张图片

win10以前系统以管理员方式打开cmd执行

c:\windows\microsoft.net\framework64\v4.0.30319\aspnet_regiis.exe -i

 

win10以管理员方式打开cmd执行

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 

转自

你可能感兴趣的:(C#)