win10开启IIS,站点访问不了,原因是先安装了.net,导致IIS没有注册;
网上手动注册命令:
(64位)c:windowsmicrosoft.netframework64v4.0.30319aspnet_regiis.exe -i
在win10下不管用:
根据提示提示找到dism命令的文章,解决问题:
命令行依次执行:
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:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files这个文件夹找不到;
则新建Temporary ASP.NET Files文件夹添加everyone用户即可!