IIS7 may fail to be uninstalled when it’s Shared Configuration corrupted

 

In Enterprise environment, when multiple IIS 7/7.5 web servers share the same configuration on a file server, if shared configuration corrupted, access denied, or the shared file server down, the IIS7/7.5 may fail to be uninstalled.

Open c:\windows\II7.log, the error can be:

===================

[04/06/2010 16:46:00] "C:\Windows\WinSxS\amd64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7600.16385_none_6cde646bce835df3\iissetup.exe" /uninstall ISAPIExtensions

[04/06/2010 16:46:00] < WARNING! > Shared configuration detected. Install/Uninstall of optional component may fail.

[04/06/2010 16:46:00] < !!FAIL!! > Uninstall of component ISAPIExtensions result=0x80070490

=================

One KB article has mentioned one scenario about Access Denied on the shared configuration, in this article the result is 0x80070005:

954856 BUG: You cannot install or uninstall a component in IIS 7.0

https://support.microsoft.com/default.aspx?scid=kb;EN-US;954856

To resolve this type issue more generally (Uninstall/Install IIS even when Shared Configuration store down), we can follow:

Locate this file and open it as Administrator:

C:\Windows\System32\inetsrv\config\redirection.config

Modify this line:

<configurationRedirection enabled="true" path="…" … />

To:

<configurationRedirection />

Save this file.

This method just informs the IIS setup application that the IIS doesn’t depend on Shared Configuration, it can go ahead to remove or reinstall the IIS.

Another way is to move the three .config files out of C:\Windows\System32\inetsrv\config\. In this situation, IIS setup cannot determine it is a shared configuration or not, will also proceed installation process directly.

Regards,

Freist Li