WAS で構成を読み取ろうとしてエラーが発生しました

Microsoft.Windows.InternetInformationServices.2008.WAS.encountered.an.error.trying.to.read.configuration (Rule)

Knowledge Base article:

[概要]

インターネット インフォメーション サービス (IIS) の Windows プロセス起動サービス (WAS) 構成マネージャーでは、保持しているアプリケーション プールとプロトコル アダプターの構成を管理します。WAS が構成を読み取るときや構成の変更通知に応答するときに問題が発生すると、管理しているエンティティの構成の変更が処理されないことがあります。

解決方法

破損した構成ファイルを修正する

ApplicationHost.config などの構成ファイルに無効な文字が含まれていると、Windows プロセス アクティブ化サービス (WAS) でファイルから構成データを読み取ることができない可能性があります。

次のような解決方法が考えられます。

構成ファイルで無効な文字を修正します。

構成ファイルで無効な文字を修正するには、次の手順に従います。

注意: 以前のバージョンの構成ファイルがあれば、比較できるため便利です。

構成ファイルをバックアップから復元する

構成ファイルをバックアップから復元するには、次の手順に従います。

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.2008.WebServer
CategoryAlert
EnabledTrue
Event SourceMicrosoft-Windows-WAS
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
WAS で、構成を読み取ろうとしてエラーが発生しました
{0}
Event LogSystem

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
WA WriteAction Microsoft.Windows.Server.IIS.2008.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.2008.WAS.encountered.an.error.trying.to.read.configuration" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.InternetInformationServices.2008.WebServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(5172|5173)$</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.2008.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.2008.WAS.encountered.an.error.trying.to.read.configuration.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>