Adding a custom error page in your web application is crucial for your site. Otherwise, when your system fails or a page is not found, your users will see the standard IIS "yellow screen of death". The solution is to add custom error page to your web application.
Follow the steps in this article in order to configure custom error pages in your Sitefinity CMS web application.
To configure the display of custom error pages, follow the procedure:
The <httpErrors> section above handles errors when accessing Sitefinity CMS pages.
IMPORTANT: If you have change the custom response code of the Application status page and you are using custom error pages, in the above example, instead of <httpErrors errorMode="Custom">, you must use <httpErrors errorMode="Custom" existingResponse="PassThrough">.
For more information, see Change the application status page response code.
This is because if the system is upgrading or restarting while a custom error page is requested, Sitefinity CMS will not be able to display the Application Status page properly, which is the expected behavior.
<httpErrors errorMode="Custom" existingResponse="PassThrough">
This <customErrors> section above handles errors when accessing ASP.NET files (for example .aspx files). The paths to the error pages are virtual relative paths.
Back To Top