WAS konnte die ausführbare Datei für das automatische Herunterfahren des Anwendungspools nicht ausführen

Microsoft.Windows.InternetInformationServices.10.0.WAS.did.not.run.the.automatic.shutdown.executable.for.application.pool (Rule)

Knowledge Base article:

Zusammenfassung

Websites und Webanwendungen hängen von der Verfügbarkeit von IIS-Anwendungspools ab. IIS-Anwendungspool wiederum hängen vom Windows-Prozessaktivierungsdienst (WAS) ab. Wenn WAS nicht ausgeführt wird oder während des Startens oder Herunterfahrens eines Anwendungspools Fehler auftreten, sind Websites und Webanwendungen möglicherweise nicht verfügbar.

Lösungen

Überprüfen der ausführbaren Datei für das automatische Herunterfahren

Eine vom Benutzer angegebene ausführbare Datei kann so konfiguriert werden, dass sie automatisch ausgeführt wird, wenn ein Anwendungspool vom WWW-Publishingdienst (W3SVC) heruntergefahren wird. Die ausführbare Datei kann z. B. den Datenverkehr für den Anwendungspool an einen anderen Server weiterleiten. Die Datei kann im IIS-Manager angegeben werden. Sie wird durch das Attribut autoShutdownExe im Abschnitt system.applicationHost/applicationPools/failure der Datei "ApplicationHost.config" dargestellt.

Wenn der Prozess autoShutdownExe nicht ausgeführt werden kann, stehen Ihnen u. a. folgende Lösungsmöglichkeiten zur Verfügung:

Überprüfen, ob der Pfad und der Dateiname korrekt angegeben wurden

Überprüfen der Zugriffssteuerungsliste für die ausführbare Datei für das Herunterfahren

Sicherstellen, dass das Programm unabhängig ausgeführt werden kann

Führen Sie einen Testlauf des ausführbaren Programms getrennt von einem Herunterfahren des Anwendungspools aus. Wenn der Prozess unabhängig vom Herunterfahren eines Anwendungspools ausgeführt werden kann, sollte er ordnungsgemäß ausgeführt werden, wenn der Anwendungspool durch WAS automatisch deaktiviert wird.

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.ApplicationPool
CategoryAlert
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.Server.IIS.10.0.WarningAndErrorEventProvider Default
Filter ConditionDetection Microsoft.Windows.InternetInformationServices.10.0.ApplicationPool.EventFilter Default
WA WriteAction Microsoft.Windows.Server.IIS.10.0.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.10.0.WAS.did.not.run.the.automatic.shutdown.executable.for.application.pool" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.ApplicationPool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.IIS.10.0.WarningAndErrorEventProvider">
<LogName>System</LogName>
</DataSource>
</DataSources>
<ConditionDetection ID="Filter" TypeID="Microsoft.Windows.InternetInformationServices.10.0.ApplicationPool.EventFilter">
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(5054|5091)$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.10.0.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.10.0.WAS.did.not.run.the.automatic.shutdown.executable.for.application.pool.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>