| 1 |
<table class="sampleCode"><tr><td><pre> |
| 2 |
<!-- Web.Config Configuration File --> |
| 3 |
|
| 4 |
<configuration> |
| 5 |
<system.web> |
| 6 |
<customErrors mode="Off"/> |
| 7 |
</system.web> |
| 8 |
</configuration></pre> </td></tr></table><br/> |
| 9 |
<p><strong>Notes:</strong> 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.</p> |
| 10 |
<table class="sampleCode"><tr><td><pre> |
| 11 |
<!-- Web.Config Configuration File --> |
| 12 |
|
| 13 |
<configuration> |
| 14 |
<system.web> |
| 15 |
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> |
| 16 |
</system.web> |
| 17 |
</configuration></pre></td></tr></table> |