Weby a webové aplikace závisí na dostupnosti fondů aplikací Internetové informační služby (IIS). Fondy aplikací služby IIS naopak závisí na Aktivační službě procesů systému Windows (WAS). Pokud se služba WAS nespustila nebo během spouštění nebo vypínání fondu aplikací nastaly chyby, nemusí být weby a webové aplikace dostupné.
Tento problém se dá vyřešit opravou problémů v oddílu globalModules souboru ApplicationHost.Config.
Postup pro konfiguraci oddílu globalModules v souboru ApplicationHost.config:
Otevřete okno příkazového řádku se zvýšenými oprávněními. Klikněte na Start, přejděte na Všechny programy, klikněte na Příslušenství, klikněte pravým tlačítkem na Příkazový řádek a pak klikněte na Spustit jako správce.
Zadejte příkaz cd %Windir%\system32\inetsrv\.
Zadejte příkaz appcmd add backup Název_zálohy k zálohování souboru ApplicationHost.config. V adresáři %Windir%\system32\inetsrv\backup se vytvoří adresář se zadaným názvem zálohy. Pokud nezadáte název, rutina appcmd automaticky vygeneruje název adresáře pomocí aktuálního data a času.
Zadejte příkaz cd %Windir%\system32\inetsrv\config
Zadejte příkaz notepad ApplicationHost.config.
V poznámkovém bloku vyhledejte oddíl globalModules v oddílu system.webServer.
Podle informací v článku IIS 8: Element globalModules (schéma nastavení služby IIS) opravte chybu konfigurace oddílu globalModules v souboru ApplicationHost.config.
Soubor ApplicationHost.config uložte a zavřete.
Target | Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool |
Category | Alert |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.Server.IIS.6.2.WarningAndErrorEventProvider | Default |
Filter | ConditionDetection | Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventFilter | Default |
WA | WriteAction | Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription | Default |
<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.Worker.process.for.application.pool.encountered.an.error.while.trying.to.read.global.module.configuration" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.IIS.6.2.WarningAndErrorEventProvider">
<LogName>Application</LogName>
</DataSource>
</DataSources>
<ConditionDetection ID="Filter" TypeID="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>2297</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-IIS-W3SVC-WP</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.6.2.Worker.process.for.application.pool.encountered.an.error.while.trying.to.read.global.module.configuration.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>