Troubleshooting an IIS Add Roles and Features error
This articles has been moved to its new home here: https://benperk.github.io/msdn/2012/2012-12-troubleshooting-an-iis-add-roles-and-features-error.html
It is common to install or uninstall Web Server features. You need these features to execute ASP.NET pages, perform logging, authenticate user requests, etc…. Figure 1 shows a sub-set list of features which you may choose to install.
Figure 1, Add Roles and Features list, small example
Try walking through the 'Add Roles and Features' wizard to see the list of all possible features.
Issue and resolution
I recently worked on case where an error was being rendered during the installation of a feature. Figure 2 shows the error.
Figure 2, An error while installing an IIS feature
The error message is: "Attempt to install <feature name> failed with error code 0x80070643. Fatal error during installation" Although this example is referring to the IIS 6 Management Console, the installation what in fact failing for any of the IIS features.
To solve this specific case, the following actions where performed:
- Take a backup of the configuration using AppCmd, example here.
- Disables Shared Configuration
- Attempted to reinstall the feature, success as shown in Figure 3
- Restored the configuration using APpCmd, example here.
Figure 3, Successful installation of the IIS feature
Other Troubleshooting tips
If you are receiving the same error, but are not using shared configuration or you are experiencing a different error there are 2 places I recommend looking for more information.
First, when you install or remove an IIS feature the steps taken are written to an IIS log located in the C:\windows directory. In IIS 7, the file is named IIS7.log. In IIS 8, the file is currently named IIS.log. An example of its contents is shown in Figure 4.
Figure 4, IIS7.log and IIS.log file examples
The second place to look is in the Event Viewer. Look at the Setup events. For example, I installed Windows Authentication and the following entry (Figure 5) was added to the Setup event log.
Figure 5, Setup event log
You may want to look into the System event log to for any additional errors. These error descriptions and event id may lead to the solution to the problem.
Comments
Anonymous
July 28, 2013
In our case we had "intrusion protection" software from McAfee installed that prevented the final step, which is marking the feature as installed in the registry. That software sends no warning or other notification to the screen, so one doesn't know what is going on.Disabling the intrusion protection software allowed the install to proceed normally.Since malware and hackers will be well aware of this software, it seems in this case at least, mostly there to trip up legitimate administration.Anonymous
July 29, 2015
Thanks for sharing, appreciated!Anonymous
March 11, 2016
"Intrusion protection" with Symantec was the culprit in my case. Disabled it and was able to add IIS web server role.