title: MVC Area Error Handling
body: <p>I have a MVC project set up with 3 areas.  In the main project I have error handling set up
  using custom errors in the web.config.</p>
  
  <pre><code>&lt;customErrors mode="On" defaultRedirect="~/Error/HttpError"&gt;
       &lt;error statusCode="404" redirect="~/Error/Http404" /&gt;     &lt;/customErrors&gt;
  </code></pre>
  
  <p>This cause the site to redirect to a error controller in the root and then show the error view.</p>
  
  <p>This works OK in the root site, however when I throw an exception in the home controller of one
  of the area sites it the message below.</p>
  
  <p>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.</p>
  
  <p>Details: To enable the details of this specific error message to be viewable on the local server machine, please create a  tag within a "web.config" configuration file located in the root directory of the current web application. This  tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".</p>
  
  <p>Is it the case that error handling in the root site cannot be used in the area sites?</p>
  
  <p>Thanks</p>
  
  <p>John.</p>