De modo a efetuar com êxito as suas atividades, o Serviço de Publicação World Wide Web (W3SVC) dos Serviços de Informação Internet (IIS) não pode ter erros de E/S que envolvam acesso a ficheiros, disponibilidade de memória e ligações de rede. Adicionalmente, todos os scripts utilizados têm de estar acessíveis e em execução, e todos os ficheiros de inclusão têm de estar corretamente configurados.
Verificar o acesso ao ficheiro
As soluções possíveis incluem as seguintes:
Se o W3SVC não conseguiu ler um ficheiro, verifique se o ficheiro indicado na mensagem de erro existe e se o W3SVC tem permissões para aceder ao ficheiro.
Se o ficheiro for demasiado grande, reduza o respetivo tamanho.
A mensagem do registo de eventos poderá conter um número de erro que forneça mais informações sobre o problema. Para fazer isto, consulte os passos seguintes.
Procurar um número de erro específico:
Para procurar um número de erro específico:
No Visualizador de Eventos, selecione o evento que recebeu.
Clique no separador Detalhes e depois em Vista Amigável.
Se estiver disponível um número de erro específico, devem aparecer as palavras Dados binários.
Anote o número depois dos dois pontos por baixo de Em Palavras.
Saber mais sobre um número de erro específico
Para saber mais sobre um número de erro específico:
Transfira o utilitário Err.exe da página Microsoft Exchange Server Error Code Look-up (Referência de Códigos de Erro do Microsoft Exchange Server).
Clique em Iniciar, Todos os Programas, Acessórios e depois Linha de Comandos.
Na linha de comandos, navegue para o diretório para onde transferiu o ficheiro Err.exe. Por exemplo, se transferiu o ficheiro Err.exe para C:\Err, escreva cd C:\Err.
Escreva o número do erro para obter mais informações sobre o erro. Por exemplo, se o número de erro específico for 80070005, escreva err 80070005.
No exemplo do Passo 4, o erro é resolvido para ERROR_ACCESS_DENIED, por isso o passo seguinte deverá consistir em verificar se existe um problema relacionado com permissões.
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>