Custom Error Page not showing
<p>For some reason, when I get an ASP.NET runtime error, it's not loading my custom error page</p>

<pre><code>&lt;customErrors mode="On" defaultRedirect="app_offline.htm" redirectMode="ResponseRewrite"&gt;
    &lt;error statusCode="404" redirect="app_offline.htm"/&gt;
        &lt;error statusCode="500" redirect="app_offline.htm"/&gt;
&lt;/customErrors&gt;
</code></pre>

<p>That's in my web.config.</p>

<p>I'm still getting this though and it's not loading my error .htm page:</p>

<pre><code>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 &lt;customErrors&gt; tag within a "web.config" configuration file located in the root directory of the current web application. This &lt;customErrors&gt; tag should then have its "mode" attribute set to "Off".

&lt;!-- Web.Config Configuration File --&gt;

&lt;configuration&gt;
    &lt;system.web&gt;
        &lt;customErrors mode="Off"/&gt;
    &lt;/system.web&gt;
&lt;/configuration&gt;


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 &lt;customErrors&gt; configuration tag to point to a custom error page URL.

&lt;!-- Web.Config Configuration File --&gt;

&lt;configuration&gt;
    &lt;system.web&gt;
        &lt;customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/&gt;
    &lt;/system.web&gt;
&lt;/configuration&gt;
</code></pre>
