アクティビティを正常に実行するために、インターネット インフォメーション サービス (IIS) の World Wide Web 発行サービス (W3SVC) では、ファイル アクセス、メモリの可用性、ネットワーク接続に関する入出力エラーが発生しないようにする必要があります。また、使用されるすべてのスクリプトがアクセス可能で正しく実行されている必要があり、すべてのインクルード ファイルを適切に構成する必要があります。
ファイル アクセスを確認する
考えられる解決策は次のとおりです:
W3SVC がファイルを読み込めなかった場合は、エラー メッセージに表示されたファイルが存在することと、W3SVC にファイルへのアクセス許可があることを確認します。
ファイルのサイズが大きすぎる場合は、ファイルのサイズを小さくします。
イベント ログ メッセージには、問題に関する詳細情報を入手できるエラー番号が含まれている可能性があります。これを行うには、次の手順を実行します。
特定のエラー番号をチェックする:
特定のエラー番号をチェックするには:
イベント ビューアーで、受け取ったイベントを選択します。
[詳細] タブ、[表示] の順にクリックします。
特定のエラー番号が利用可能である場合、"バイナリ データ:" が表示されます。
[Word 形式] の下にあるコロンの後の数字を記録します。
特定のエラー番号の詳細を確認する
特定のエラー番号の詳細を確認するには:
「 Microsoft Exchange Server Error Code Look-up」ページから Err.exe ユーティリティをダウンロードします。
[スタート] ボタンをクリックし、[すべてのプログラム]、[アクセサリ]、[コマンド プロンプト] の順にクリックします。
コマンド プロンプトで、Err.exe をダウンロードしたディレクトリに移動します。たとえば、Err.exe を C:\Err にダウンロードした場合、「cd C:\Err」と入力します。
エラーに関する詳細情報を入手するには、エラー番号を入力します。たとえば、エラー番号が 80070005 の場合、「err 80070005」と入力します。
手順 4 の例では、エラーが ERROR_ACCESS_DENIED に解決され、次のステップとしてアクセス許可の問題をチェックします。
Target | Microsoft.Windows.InternetInformationServices.10.0.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.10.0.GenerateAlertAction.SuppressedByDescription | Default |
<Rule ID="Microsoft.Windows.InternetInformationServices.10.0.The.server.was.unable.to.read.a.file" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.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.10.0.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.10.0.The.server.was.unable.to.read.a.file.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>