Internet Information Services (IIS) Windows Process Activation Service (WAS) 配置管理器管理应用程序池及其维护的协议适配器的配置。如果 WAS 在读取配置或应对配置更改通知时遇到问题,可能无法处理其管理的实体的配置更改。
使用 IIS 管理器更正配置属性
若要解决此问题,请使用 IIS 管理器将事件日志消息中指定属性的配置设置更改为有效值。有关 IIS 8 配置的有效值,可联机查看 IIS 8:IIS 设置架构。
若要使用 IIS 管理器编辑配置,请执行以下操作:
单击“开始”,再单击“控制面板”,然后单击“管理工具”。
右键单击 Internet Information Services (IIS) 管理器并选择“以管理员身份运行”。
在 IIS 管理器中,导航到事件日志消息中指定属性的配置页面。注意:你导航的页面将取决于事件日志消息;请参阅随后的示例。
为事件日志消息中指定的配置属性提供有效值。
配置示例
你收到以下事件消息:
“站点”“1”拥有一个无效属性值“truncateSize”。配置的值“400”无效。该值将默认为“20971520”。
若要解决此问题,请执行以下操作:
单击“开始”,再单击“控制面板”,然后单击“管理工具”。
右键单击 Internet Information Services (IIS) 管理器并选择“以管理员身份运行”。
在“连接”窗格中,选择计算机名。
出现 truncateSize 属性表示这是一个日志记录问题。在“功能视图”中,双击“日志记录”。
在“日志文件滚动更新”下,确保选中最大文件大小(字节)。
如有必要,请参阅 IIS 设置架构文章 - IIS 8:在 IIS 8 中配置日志记录来获取可能的值。
在最大文件大小(字节)下,键入介于 1048576(1 MB)与 4294967295(4 GB)之间的值。
在“操作”窗格中,单击“应用”。
Target | Microsoft.Windows.InternetInformationServices.6.2.WebServer |
Category | Alert |
Enabled | True |
Event_ID | 5067 |
Event Source | Microsoft-Windows-WAS |
Alert Generate | False |
Remotable | True |
Event Log | System |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.EventProvider | Default |
WA | WriteAction | Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription | Default |
<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.WWW.service.property.failed.range.validation" 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>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>5067</Value>
</ValueExpression>
</SimpleExpression>
</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.WWW.service.property.failed.range.validation.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>