Webbplatser och webbprogram är beroende på tillgången av Internet Information Services (IIS) programpooler. IIS programpooler däremot är beroende av Windows Process Activation Service (WAS). Om WAS inte körs eller fel inträffar under start eller avstängning av en programpool, kanske webbplatser och webbapplikationer inte är tillgängliga.
Du kan lösa det här problemet genom att korrigera problemen i avsnittet globalModules i ApplicationHost.Config-filen.
Så här konfigurerar du avsnittet globalModules i ApplicationHost.config:
Öppna ett upphöjt Kommandotolkens fönster. Klicka på Start, för markören till Alla program, klicka på Tillbehör, högerklicka på Kommandotolk och klicka sedan på Kör som administratör.
Skriv cd %Windir%\system32\inetsrv\.
Skrivappcmd add backup backupName för att säkerhetskopiera ApplicationHost.config-filen. En katalog med det säkerhetskopienamn som du anger skapas under katalogen %Windir%\system32\inetsrv\backup. Om du inte anger ett namn, kommer appcmd automatiskt att generera ett katalognamn med aktuellt datum och tid.
Skriv cd %Windir%\system32\inetsrv\config
Skriv notepad ApplicationHost.config
Sök i Anteckningar efter avsnittet globalModules under avsnittet system.webServer.
Använd artikeln IIS 8: globalModules Element (IIS Settings Schema) som vägledning för att konfigurera globalModules-avsnittets konfigurationsfel i filen ApplicationHost.config.
Spara och stäng ApplicationHost.config-filen.
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>