アプリケーション プール ID が無効です

Microsoft.Windows.InternetInformationServices.6.2.The.identity.of.the.application.pool.is.invalid.Monitor (UnitMonitor)

Knowledge Base article:

概要

Web サイトおよび Web アプリケーションは、インターネット インフォメーション サービス (IIS) アプリケーション プールの可用性に依存しています。IIS アプリケーション プールもまた、Windows プロセス アクティブ化サービス (WAS) に依存しています。アプリケーション プールの開始または停止中に WAS が実行されていなかったりエラーが発生したりすると、Web サイトおよび Web アプリケーションが利用できない場合があります。

解決方法

アプリケーション プールが正常に機能するには、アプリケーション プール ID を有効なアカウントに設定する必要があります。アプリケーション プール ID には、ビルトインとカスタムの 2 つの種類があります。ビルドイン アカウントは、NetworkService、LocalService、LocalSystem です。既定値 (推奨) は NetworkService です。アプリケーション プール ID をカスタム アカウントに設定する場合、ユーザーの資格情報が有効であり、ユーザーが IIS_USRS グループのメンバーであることを確認する必要があります。次の手順は、アプリケーション プール ID を設定し、アプリケーション プールを再起動する方法を説明しています。

アプリケーション プール ID を設定するには:

特定のユーザー (カスタム アカウント) を IIS_USRS グループに追加するには:

注意: ユーザーを IIS_USRS グループに追加したら、新しいログイン権限を有効にするために Web サービスを停止し再起動する必要があります。これにより、サーバーへのすべての Web トラフィックが停止されます。

ID を IIS_USRS グループに追加しなかった場合は、アプリケーション プールを停止し、再起動する手順を続行します。

Web サービスを停止し、再起動するには:

アプリケーション プールを停止し、再起動するには:

以下のリンクを使用して、アプリケーション プールを再起動することもできます:

アプリケーション プールのリサイクル

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.ApplicationPool
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventLogManualReset2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
アプリケーション プール ID が無効です
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.6.2.The.identity.of.the.application.pool.is.invalid.Monitor" Accessibility="Public" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventLogManualReset2StateMonitorType" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.InternetInformationServices.6.2.The.identity.of.the.application.pool.is.invalid.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ManualResetEventRaised" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
<OperationalState ID="ErrorEventRaised" MonitorTypeStateID="ErrorEventRaised" HealthState="Error"/>
</OperationalStates>
<Configuration>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(5021|5057)$</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>
</Configuration>
</UnitMonitor>