framework4.0 可这样
C:InetpubAdminScripts>cd C:WINDOWSMicrosoft.NETFrameworkv4.0.30319
C:WINDOWSMicrosoft.NETFrameworkv4.0.30319>aspnet_regiis.exe -i
Start installing ASP.NET (4.0.30319).
.......
Finished installing ASP.NET (4.0.30319).
2.0
解决办法:在CMD中进入目录C:WINDOWSMicrosoft.NETFrameworkv2.0.50727,运行aspnet_regiis
1、aspnet_regiis -ga administrator(administrator为当前用户)
C:Documents and SettingsAdministrator>cd c:\windows\microsoft.net\framework\v2.0.50727
2、aspnet_regiis -i (注册IIS)
3、iisreset /noforce (重启IIS)