若要确保隔离网站和 Web 应用程序,必须将 Internet Information Services (IIS) 应用程序池配置为具有唯一的名称和正确配置的标识。 如果在配置应用程序池过程中出现错误,则该应用程序池可能无法为分配给它的网站和 Web 应用程序提供服务。
按照事件日志消息中的指示,纠正应用程序池配置。 如果问题仍然存在,请检查对 ApplicationHost.config 文件拥有的权限并确保所有必需的服务均已启动。 有些情况下,您可能必须停止并重新启动 WAS。
使用 Internet Information Services (IIS) 管理器编辑应用程序池配置
若要编辑应用程序池配置,请执行以下操作:
依次单击“开始”、“控制面板”和“管理工具”。
右键单击“Internet Information Services (IIS)管理器”,并选择“以管理员身份运行”。
在“连接”窗格中,展开服务器节点,然后选择“应用程序池”。
在“功能视图”中,选择要配置的应用程序池。
在“操作”窗格中,单击“高级设置”。
按照事件日志消息中的指示,纠正应用程序池配置。
单击“确定”。
停止然后重新启动 WAS
若要停止然后重新启动 WAS,请执行以下操作:
注意:停止 WAS 还将停止依赖它的任何其他服务,包括 World Wide Web 发布服务 (W3SVC)。 因此,可能还必须重新启动 W3SVC 或其他服务。
打开权限提升的命令提示符窗口。 单击“开始”,指向“所有程序”,单击“附件”,右键单击“命令提示符”,然后单击“以管理员身份运行”。
在命令提示符处键入 net stop was /y。
在命令提示符处键入 net start was。
若要重新启动 W3SVC,请在命令提示符处键入 net start w3svc。 另外,还要启动在关闭 WAS 时停止的任何其他服务。
Target | Microsoft.Windows.InternetInformationServices.2008.ApplicationPool | ||
Category | Alert | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
|
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.Server.IIS.2008.WarningAndErrorEventProvider | Default |
Filter | ConditionDetection | Microsoft.Windows.InternetInformationServices.2008.ApplicationPool.EventFilter | Default |
WA | WriteAction | Microsoft.Windows.Server.IIS.2008.GenerateAlertAction.SuppressedByDescription | Default |
<Rule ID="Microsoft.Windows.InternetInformationServices.2008.WWW.service.failed.to.properly.configure.the.application.pool.queue.length" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.InternetInformationServices.2008.ApplicationPool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.IIS.2008.WarningAndErrorEventProvider">
<LogName>System</LogName>
</DataSource>
</DataSources>
<ConditionDetection ID="Filter" TypeID="Microsoft.Windows.InternetInformationServices.2008.ApplicationPool.EventFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>1087</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-IIS-W3SVC</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<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.WWW.service.failed.to.properly.configure.the.application.pool.queue.length.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>