Release 1.0 - ...
<customErrors> element
Defines how errors are handled in Smartsite. Smartsite can create its own error pages or it can bubble the error to the hosting environment.
Example
XML |
Copy Code
|
<customErrors handleErrors="true" mode="RemoteOnly" defaultRedirect="error.html">
<error statusCode="404" redirect="notfound.html" />
<error channel="nl" statusCode="404" redirect="foutje.html" />
<error channel="fr" statusCode="404" redirect="excusezmoi.html" />
</customErrors>
|
Attributes
Attribute name |
Required |
Description |
handleErrors |
No |
If true, Smartsite handles its own error by generating an error page. If false, the error is bubbled to the hosting environment, usually ASP.NET. |
mode |
No |
Defines which error page is shown for who.
- Off defines that the user is never redirected to a friendly error page but is shown the generated error page with exception information.
- On defines that the user is always redirected to the friendly error page.
- RemoteOnly defines that the user is redirected to the friendly error page if the user is not coming from the localhost, otherwise the generated error page with exception information is shown.
|
defaultRedirect |
No |
Contains the location of the error page where users are redirected to if no specific error page can be found. |
Parent element
Element name |
Description |
<runtime> |
Contains settings for the Smartsite runtime. |
Child elements
Element name |
Description |
<error> |
Defines an error page for a specific item. |