title: ASP.net Server Error in '/' Application
body: <p>I've had users consistently getting this error on our homepage:</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>
  
  <p>I can't reproduce this error at all live or on my dev server.  However, in my web.config file I beleive I do have the error code setup correctly:</p>
  
  <pre><code>&lt;customErrors mode="On" defaultRedirect="~/error.aspx" redirectMode="ResponseRewrite"&gt;
      &lt;error statusCode="500" redirect="~/error.aspx" /&gt;
  &lt;/customErrors&gt;
  </code></pre>
  
  <p>All other errors on the site seem to direct to error.aspx just fine, does anyone have any idea why this error would be occurring and how I can catch it?</p>