Aby mohla Služba publikování na webu (W3SVC) v rámci Internetové informační služby (IIS) správně provádět své aktivity, nesmí obsahovat žádné chyby V/V, které zahrnují přístup k souborům, dostupnost paměti a síťová připojení. Jakékoli používané skripty musí být navíc přístupné a spuštěné a jakékoli zahrnuté soubory musí být správně nakonfigurované.
Kontrola přístupu k souborům
Možná řešení:
Pokud služba W3SVC nemohla načíst soubor, ověřte, zda soubor uvedený v chybové zprávě existuje a zda má služba W3SVC k tomuto souboru oprávnění.
Pokud je soubor příliš velký, zmenšete jeho velikost.
Zpráva protokolu události může obsahovat číslo chyby, které může poskytovat další informace o problému. Postup je uveden dále.
Zjištění konkrétního čísla chyby:
Zjištění konkrétního čísla chyby:
V prohlížeči událostí vyberte přijatou událost.
Klikněte na kartu Podrobnosti a potom na možnost Zjednodušený pohled.
Pokud je k dispozici konkrétní číslo chyby, měl by se objevit text Binary data: (Binární data:).
Poznamenejte si číslo uvedené za textem In Words (Slovy).
Zjištění dalších informací o konkrétním čísle chyby
Zjištění dalších informací o konkrétním čísle chyby:
Stáhněte si nástroj Err.exe ze stránky Vyhledání kódu chyby na serveru Microsoft Exchange.
Klikněte postupně na položky Start, Všechny programy, Příslušenství a potom Příkazový řádek.
Na příkazovém řádku přejděte do adresáře, do kterého jste stáhli soubor Err.exe. Pokud jste například stáhli soubor Err.exe na jednotku C:\Err, zadejte cd C:\Err.
Pokud chcete získat více informací o chybě, zadejte číslo chyby. Pokud je například konkrétní číslo chyby 80070005, zadejte err 80070005.
Chyba v příkladu v kroku 4 se překládá na ERROR_ACCESS_DENIED, vaším dalším krokem tedy bude kontrola problému s oprávněním.
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>