W celu prawidłowego wykonywania zadań usługa publikowania w sieci World Wide Web (W3SVC) wchodząca w skład internetowych usług informacyjnych (IIS) nie może zawierać żadnych błędów wejścia/wyjścia dotyczących dostępu do plików, dostępności pamięci ani połączeń sieciowych. Dodatkowo wszystkie używane skrypty muszą być dostępne i uruchomione, a wszystkie pliki załączane muszą być prawidłowo skonfigurowane.
Sprawdź dostęp do pliku
Możliwe są następujące rozwiązania:
Jeśli usługa W3SVC nie może odczytać pliku, upewnij się, że plik wskazany w komunikacie o błędzie istnieje i usługa W3SVC ma do niego dostęp.
Jeśli plik jest za duży, zmniejsz jego wielkość.
Komunikat dziennika zdarzeń może zawierać numer błędu, który umożliwi uzyskanie dodatkowych informacji o problemie. W tym celu należy wykonać następujące czynności.
Sprawdź numer konkretnego błędu:
Aby znaleźć numer konkretnego błędu:
W Podglądzie zdarzeń wybierz otrzymane zdarzenie.
Kliknij kartę Szczegóły, a następnie wybierz opcję Widok przyjazny.
W przypadku dostępności konkretnego numeru błędu powinny być widoczne wyrazy Dane binarne.
Zanotuj liczbę znajdującą się po dwukropku poniżej pozycji W wyrazach.
Dowiedz się więcej na temat konkretnego numeru błędu
Aby dowiedzieć się więcej o konkretnym numerze błędu:
Pobierz narzędzie Err.exe ze strony Microsoft Exchange Server Error Code Look-up (Wyszukiwanie kodów błędów programu Microsoft Exchange Server).
Kliknij kolejno pozycje Start, Wszystkie programy, Akcesoria i Wiersz polecenia.
W wierszu polecenia przejdź do katalogu, do którego pobrano plik Err.exe. Jeśli na przykład plik Err.exe pobrano to katalogu C:\Err, wpisz cd C:\Err.
Wpisz numer błędu, aby otrzymać więcej informacji o danym błędzie. Jeśli na przykład numerem konkretnego błędu jest 80070005, wpisz err 80070005.
W przykładzie zawartym w kroku 4 błąd zostanie rozpoznany jako ERROR_ACCESS_DENIED, więc następną czynnością powinno być sprawdzenie uprawnień.
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>