구성을 읽는 동안 WAS에서 오류가 발생했습니다.

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

Knowledge Base article:

요약

IIS(인터넷 정보 서비스) WAS(Windows Process Activation Service) 구성 관리자는 유지 관리되는 응용 프로그램 풀 및 프로토콜 어댑터에 대한 구성을 관리합니다. WAS가 구성을 읽거나 구성 변경 알림을 적용할 때 문제가 발생하면 WAS에서 관리되는 엔터티의 구성 변경이 처리되지 않을 수 있습니다.

해결 방법

손상된 구성 파일 수정

ApplicationHost.config와 같은 구성 파일에 잘못된 문자가 포함된 경우 WAS(Windows Process Activation Service)가 파일의 구성 데이터를 읽을 수 없습니다.

가능한 해결 방법은 다음과 같습니다.

구성 파일에서 잘못된 문자 수정

구성 파일에서 잘못된 문자를 수정하려면:

참고: 사용 가능한 이전 버전의 구성 파일이 있는 경우 비교하는 데 유용하게 사용할 수 있습니다.

백업에서 구성 파일 복원

백업에서 구성 파일을 복원하려면:

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.WebServer
CategoryAlert
EnabledTrue
Event SourceMicrosoft-Windows-WAS
Alert GenerateFalse
RemotableTrue
Event LogSystem

Member Modules:

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

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.10.0.WAS.encountered.an.error.trying.to.read.configuration" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.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.10.0.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.10.0.WAS.encountered.an.error.trying.to.read.configuration.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>