推测可能是IIS没装好
看到有人说要先装iis 再装.net framework才能运行aspx
于是按照网上的方法
如果先安装.Net Framework后安装IIS怎么办?
第一步:开启cmd 命令窗口(用管理员账户打开)C:\Windows\System32\cmd.exe
第二步:定位到目录:cd C:\Windows\Microsoft.NET\Framework\v4.0.30319(这里是注册的.Net Framework 4.0)
第三步:命令提示符程序中注册一下:aspnet_regiis -i
然后报错了
This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog, the Server Manager management tool, or the dism.exe command line tool. For more details please see http://go.microsoft.com/fwlink/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.0).
看来这里真的安装有问题啊……但好像不是顺序的问题
IIS6似乎最高只支持到.NET4.0
.NET 4.5的要求是Windows Server 2008或更高版本