title: httpErrors not redirecting to correct page with MVC 3
body: <p>I am trying to set up http custom error pages in my MVC 3 web application.  I have added the following to my web.config:</p>
  
  <pre><code>&lt;httpErrors errorMode="Custom" defaultResponseMode="ExecuteUrl" defaultPath="/Error/404"&gt;
    &lt;clear /&gt;
    &lt;error statusCode="500" path="/Error/404"
  &lt;/httpErrors&gt;
  </code></pre>
  
  <p>When a 500 error occurs on a request I expected this to redirect the user my.domainname.com/Error/404.</p>
  
  <p>I have an Error controller which contains one action called error, I have mapped requests for 404 to this action.</p>
  
  <p>When I force a 500 error (verified by chrome developer tools network tab) on the website I receive a blank page with the following message:</p>
  
  <p>"The page cannot be displayed because an internal server error has occurred."</p>
  
  <p>If I remove the httpErrors section from my web.config then I get the actual exception message.  Therefore the httpErrors section I have in the web.config must be working, I just do not understand how to set it up correctly.</p>
  
  <p>Here is a list of the attributes I have picked and why:</p>
  
  <p>errorMode="Custom": So that I can see the custom error page and verify it is working before changing it to local only.</p>
  
  <p>defaultResponseMode="ExecuteUrl": This should allow me to specify a server relative url as the path, which sounds like what I want as I want to hit a controller action.</p>
  
  <p>defaultPath="/Error/404": The relative url I want requested if I do not specify one.</p>
  
  <p>Edit:</p>
  
  <p>I should add that the site is running on IIS 7.5.  I also do not wish to use the  tag as this is designed to work with IIS 6 and  should be used for IIS 7+.  </p>