C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -i


Start installing ASP.NET (2.0.50727).
...
Finished installing ASP.NET (2.0.50727).


C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation>ServiceModelReg.exe //x


Microsoft(R) Windows Communication Foundation Installation Utility
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
Copyright (c) Microsoft Corporation.  All rights reserved.


Installing: Machine.config Section Groups and Handlers

Installing: System.Web Build Provider

Installing: System.Web Compilation Assemblies

Installing: HTTP Handlers

Installing: HTTP Modules

Installing: Web Host Script Mappings

Installing: WMI Classes

Installing: Windows CardSpace (idsvc)

Installing: Net.Tcp Port Sharing Service (NetTcpPortSharing)

Installing: HTTP Namespace Reservations

C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation>ServiceModelReg.exe /s:W3SVC

Microsoft(R) Windows Communication Foundation Installation Utility
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
Copyright (c) Microsoft Corporation.  All rights reserved.

Installing: Web Host Script Mappings

3.
C:\WINDOWS\Microsoft.NET\Framework\v3.5>WFServicesReg.exe /c

C:\WINDOWS\Microsoft.NET\Framework\v3.
5>WFServicesReg.exe /r

4.  发生Error: Failed to access IIS metabase

aspnet_regiis -ga ASPNET
Start granting ASPNET access to the IIS metabase and other directories used by ASP.NET.
Finished granting ASPNET access to the IIS metabase and other directories used by ASP.NET.