若要成功執行其活動,Internet Information Services (IIS) World Wide Web Publishing 服務 (W3SVC) 在檔案存取、記憶體可用性和網路連線方面不可發生任何 I/O 錯誤。此外,用到的所有指令碼都必須可供存取且在執行中,而且必須正確設定所有的 Include 檔。
檢查檔案存取權
可能的解決方式包括:
如果 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>