要先安装 NetFrameWork 在安装iis 不然会报错, 一般是在安装 Windows Communication Foundation (WCF) 之后安装了 IIS造成,运行以上命令将在 IIS 中注册所需的脚本映射。