Setup: Windows 7, IIS7. Sto lavorando su un'app che viene visualizzata tramite il server IIS locale, non il server Web di debug integrato. Quindi l'URL della mia app è http://localhost/foo/bar.aspx
. C'è la sezione no<customErrors>
nel mio web.config e non ho cambiato nessuna impostazione in IIS.Errore 500.19 in IIS7 quando si verifica un errore
Se si verifica un errore, ho sempre arrivare la seguente schermata di errore:
HTTP Error 500.19 - Internal Server Error
assoluto percorso fisico "C:\inetpub\custerr
" non è consentito insystem.webServer/httpErrors
sezione nel web.config file. Usa invece il percorso relativo.
Ecco il mio applicationhost.config
contenuti:
<httpErrors errorMode="Custom" lockAttributes="allowAbsolutePathsWhenDelegated,defaultPath">
<error statusCode="401" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="401.htm" />
<error statusCode="403" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="403.htm" />
<error statusCode="404" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="404.htm" />
<error statusCode="405" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="405.htm" />
<error statusCode="406" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="406.htm" />
<error statusCode="412" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="412.htm" />
<error statusCode="500" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="500.htm" />
<error statusCode="501" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="501.htm" />
<error statusCode="502" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="502.htm" />
</httpErrors>
Come posso liberarmi di questo errore di configurazione in modo da poter vedere gli errori dettagliati?
non è possibile effettuare una sovrabbondanza sufficiente. ho avuto un web.config nella mia radice del sito web. cancellato da tutti da lì. yayayayayayaya !!!!!!!! – Joel
http://stackoverflow.com/questions/4358339/how-to-prevent-iis7-for-handling-http-status-code-401 – Jared314
Ho iis7.5 e vs2013 e questa proprietà non è consentita nel file di configurazione , dopo aver provato a premere su questo, l'errore appare ancora. – DanielV