WAS påträffade ett fel när konfigureringen försökte läsas

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

Knowledge Base article:

Sammanfattning

Internet Information Services (IIS) Windows Process Activation Service (WAS) Configuration Manager hanterar konfiguration av programpoolerna och protokolladaptrar som den upprätthåller. Om WAS får problem när den läser av konfiguration eller reagerar på konfigureringsändringsindikatorer, konfigurationsändringar för de enheter som den förvaltar får inte behandlas.

Lösningar

Korrigera en skadad konfigurationsfil

Om en konfigurationsfil som ApplicationHost.config innehåller ogiltiga tecken kan WAS-tjänsten (Windows Process Activation Service) eventuellt inte läsa konfigurationsdata från filen.

Möjliga lösningar:

Korrigera ogiltiga tecken i konfigurationsfilen

Så här korrigerar du ogiltiga tecken i konfigurationsfilen

Obs! En eventuell tidigare version av konfigurationsfilen kan fungera som jämförelse.

Återställa en konfigurationsfil från en säkerhetskopia

Så här återställer du en konfigurationsfil från en säkerhetskopia:

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.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.6.2.GenerateAlertAction.SuppressedByDescription Default

Source Code:

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