Internet Information Services (IIS) Windows Process Activation Service (WAS) 配置管理器可管理应用程序池及其维护的协议适配器的配置。 如果 WAS 在读取配置或对配置更改通知做出响应时遇到问题,则可能无法处理它管理的实体的配置更改。
更正损坏的配置文件
如果配置文件(例如 ApplicationHost.config)包含无效字符,则 Windows Process Activation Service (WAS) 可能无法从该文件中读取配置数据。
可能的解决方法有:
在事件日志消息所指示的位置处纠正文件中的无效字符。
从备份还原配置文件的最新副本。
纠正配置文件中的无效字符
若要纠正配置文件中的无效字符,请执行以下操作:
使用 Windows 资源管理器导航到配置文件位置。 对于 ApplicationHost.config,默认位置为 %Windir%\system32\inetsrv\config。
使用文本编辑器打开文件,找到事件日志消息所指示的行号。
纠正找到的无效字符。
注意:可使用该配置文件的早期版本(如果可用)进行比较。
保存并关闭该文件。
如果纠正此文件后仍未解决问题,则可从备份(如果可用)还原配置文件。 为此,请参阅下列步骤。
从备份还原配置文件
若要从备份还原配置文件,请执行以下操作:
如果有一个已知完好的配置文件副本可用,则只需将此完好的文件复制到配置文件位置,便可使用完好的副本替换当前文件。 对于 ApplicationHost.config,默认文件位置为 %Windir%\system32\inetsrv\config。
如果受影响的文件是 ApplicationHost.config 且已启用 IIS 7 配置历史记录功能,则可从配置历史记录存储中还原自动保存的备份。 默认情况下,ApplicationHost.config 文件的早期版本保存在 %SystemDrive%\inetpub\history 文件夹下的子文件夹中。
Target | Microsoft.Windows.InternetInformationServices.2008.WebServer | ||
Category | Alert | ||
Enabled | True | ||
Event Source | Microsoft-Windows-WAS | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | System |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.EventProvider | Default |
WA | WriteAction | Microsoft.Windows.Server.IIS.2008.GenerateAlertAction.SuppressedByDescription | Default |
<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>