为成功执行 Internet Information Services (IIS) World Wide Web 发布服务 (W3SVC) 的活动,必须避免涉及文件访问、内存可用性和网络连接的任何 I/O 错误。此外,必须可访问和运行任何使用的脚本以及正确配置任何包含的文件。
检查文件访问
可能的解决方法包括:
如果 W3SVC 无法读取文件,请验证错误消息中指示的文件是否存在,同时 W3SVC 是否拥有读取该文件的权限。
如果文件过大,则缩小其大小。
事件日志消息可能包含可以提供有关该问题更多信息的错误号。要执行此操作,请查看以下步骤。
检查特定错误号:
要检查特定错误号,请执行以下操作:
在“事件查看器”中,选择你收到的事件。
单击“详细信息”选项卡,然后单击“友好视图”。
如果存在特定错误号,则应显示“二进制数据:”一词。
在“单词中”下,请注意冒号后的数字。
查找有关特定错误号的详细信息
若要了解有关特定错误号的详细信息,请执行以下操作:
从 Microsoft Exchange Server 错误代码查找页面下载 Err.exe 实用工具。
单击“开始”、“所有程序”、“附件”,然后单击“命令提示符”。
在命令提示符处,导航到你下载 Err.exe 的目录。例如,如果已将 Err.exe 下载到 C:\Err,则键入 cd C:\Err。
键入错误编号,获取有关此错误的详细信息。例如,如果特定错误号为 80070005,则键入 err 80070005。
在步骤 4 的示例中,此错误解析为 ERROR_ACCESS_DENIED,因此下一步将是检查权限问题。
Target | Microsoft.Windows.InternetInformationServices.6.2.WebServer |
Category | Alert |
Enabled | True |
Event Source | Microsoft-Windows-IIS-W3SVC-WP |
Alert Generate | False |
Remotable | True |
Event Log | Application |
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.The.server.was.unable.to.read.a.file" 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>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-IIS-W3SVC-WP</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(2226|2230|2231|2232)$</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.The.server.was.unable.to.read.a.file.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>