Files
mono/mcs/class/System.Web/resources/DefaultErrorTemplate_CustomErrorDefault.html
Marek Habersack 1465bf891a [ASP.NET] Templated exception reporting and a new look for the Yellow Screen Of Death
This commit implements the base template code along with the default Mono theme for exception/error
reporting in ASP.NET applications. Means for user to implement their own templates will be provided
at a later date.
2011-01-24 03:15:14 +01:00

18 lines
824 B
HTML

<table class="sampleCode"><tr><td><pre>
&lt;!-- Web.Config Configuration File --&gt;
&lt;configuration&gt;
&lt;system.web&gt;
&lt;customErrors mode=&quot;Off&quot;/&gt;
&lt;/system.web&gt;
&lt;/configuration&gt;</pre> </td></tr></table><br/>
<p><strong>Notes:</strong> The current error page you are seeing can be replaced by a custom error page by modifying the &quot;defaultRedirect&quot; attribute of the application's &lt;customErrors&gt; configuration tag to point to a custom error page URL.</p>
<table class="sampleCode"><tr><td><pre>
&lt;!-- Web.Config Configuration File --&gt;
&lt;configuration&gt;
&lt;system.web&gt;
&lt;customErrors mode=&quot;RemoteOnly&quot; defaultRedirect=&quot;mycustompage.htm&quot;/&gt;
&lt;/system.web&gt;
&lt;/configuration&gt;</pre></td></tr></table>