Resolving an IIS install command failure for IIS-ASPNET during Installation

Symptom

While installing OnGuard, the following error message may appear near the end of the Web Application Server installation:
 
"The following IIS install commands failed: IIS-ASPNET".
 
This error indicates that the installation could not successfully enable the IIS-ASPNET feature in your system's IIS role configuration.

Resolution

Most likely, your system does not have the Default Document role enabled in IIS, which is required for the ASPNET role to be enabled.
 
To enable both roles, run the following calls from your system's cmd.exe prompt:
 
Dism.exe -Online /Enable-Feature /FeatureName:IIS-ASPNET /Norestart
 
Dism.exe -Online /Enable-Feature /FeatureName:IIS-DefaultDocument /Norestart
 
You can run these commands after completing the OnGuard installation (and after experiencing the "IIS install commands failed" error on a system).

Applies To

OnGuard (All versions)

Additional Information