Internet Information Services (IIS) Windows Process Activation Service (WAS) 配置管理器管理应用程序池及其维护的协议适配器的配置。如果 WAS 在读取配置或应对配置更改通知时遇到问题,可能无法处理其管理的实体的配置更改。
更正集中日志记录
若要更正集中日志记录配置,请使用 IIS 管理器,然后停止并重新启动 W3SVC 以重新应用配置。如果您不确定要使用的配置值,使用 IIS 的默认日志记录值,这可在 %SystemDrive%\Windows\System32\inetsrv\config\schema \IIS_Schema.xml 文件的 <sectionSchema name="system.applicationHost/log"> 部分找到。
查看默认 IIS 日志记录值
若要使用记事本查看默认 IIS 日志记录值,请执行以下操作:
打开提升的命令提示符窗口。单击“开始”,指向“所有程序”,再单击“附件”,右键单击“命令提示符”,然后单击“以管理员身份运行”。
键入 cd %Windir%\system32\inetsrv\config\schema。
键入 notepad IIS_schema.xml
在记事本中,搜索 system.applicationHost/log。将显示日志部分及其元素。默认值以 defaultValue 属性表示。
使用 IIS 管理器配置集中日志记录
若要使用 IIS 管理器配置集中日志记录,请执行以下操作:
单击“开始”,再单击“控制面板”,然后单击“管理工具”。
右键单击 Internet Information Services (IIS) 管理器并选择“以管理员身份运行”。
在“连接”窗格中,选择计算机名。
在“功能视图”中,双击“日志记录”。
在“日志记录”页面上配置设置,然后单击“应用”。
停止并重新启动 W3SVC
若要停止并重新启动 W3SVC,请执行以下操作:
单击“开始”,右键单击“计算机”,然后选择“管理”。
在“服务器管理器”中,展开“配置”。
单击“服务”并查找服务列表中的“World Wide Web 发布服务”。
右键单击“World Wide Web 发布服务”并选择“停止”。
再次右键单击“World Wide Web 发布服务”并选择“启动”。
Target | Microsoft.Windows.InternetInformationServices.6.2.WebServer |
Category | Alert |
Enabled | True |
Event_ID | 5066 |
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.WAS.encountered.an.error.attempting.to.configure.centralized.logging" 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>5066</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>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.6.2.WAS.encountered.an.error.attempting.to.configure.centralized.logging.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>