Pour une raison quelconque, quand je reçois une erreur d'exécution ASP.NET, ce n'est pas charger ma page d'erreur personnaliséepage d'erreur ne montrant
<customErrors mode="On" defaultRedirect="app_offline.htm" redirectMode="ResponseRewrite">
<error statusCode="404" redirect="app_offline.htm"/>
<error statusCode="500" redirect="app_offline.htm"/>
</customErrors>
C'est dans mon web.config.
Je suis toujours obtenir ce bien et ça ne se charge pas mon erreur page .htm:
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
Qu'est-ce que * vous * obtenez? –
Je vais mettre à jour le fil ... Je reçois l'erreur typique sur les erreurs personnalisées. Ceci est hébergé sur discountasp.net – PositiveGuy
Pourquoi utiliser l'app_offline.htm comme erreur personnalisée? ce fichier tout d'abord s'il existe, vous arrêtez votre application web. Deuxièmement, ouvrez les erreurs pour voir la véritable erreur. (ou voir votre journal) – Aristos