Mi è capitato di ritrovare la macchina con Windows Server 2008 SP2 riavviata con IIS 7 bloccato, non era neanche possibile accedere alla configurazione tramite mmc.
Negli eventi segnalava questo errore:

Log Name: System
Source: Microsoft-Windows-IIS-APPHOSTSVC
Date: 19/02/2010 14.03.31
Event ID: 9006
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: Moss2007.local
Description:
The Application Host Helper Service encountered an error trying to process the configuration data for config history. The feature will be disabled. To resolve this issue, please confirm that the configuration file is correct, has correct attribute values for config history and recommit the changes. The feature will be enabled again if the configuration is correct. The data field contains the error number.
Andando a vedere i file i file di configurazione di IIS in %Windir%\system32\inetsrv\config il file applicationHost.config risultava vuoto o meglio era pieno di caratteri null.

L'unica cosa che ho potuto fare e ripristinare l'ultima configurazione salvata.
Per vedere l'elenco delle configurazioni salvate:
DOS / Batch file
cd /d %windir%\system32\inetsrv\

appcmd list backup
restituisce un elenco simile al seguente:
Text
BACKUP "CFGHISTORY_0000108420"
BACKUP "CFGHISTORY_0000108421"
BACKUP "CFGHISTORY_0000108422"
BACKUP "CFGHISTORY_0000108423"
BACKUP "CFGHISTORY_0000108424"
BACKUP "CFGHISTORY_0000108425"
a questo punto ho restorato l'ultima configurazione:
DOS / Batch file
appcmd restore backup CFGHISTORY_0000108425
e fatto ripartire IIS:
DOS / Batch file
net start w3svc

Il post originale è questo http://support.microsoft.com/kb/954872/en-us , se il file non fosse completamente vuoto si può vedere anche questo http://technet.microsoft.com/en-us/l...c735123.aspx per cercare di ripararlo.
Potrebbe interessarti anche: