title: Custom errors not working with IISExpress
body: <p>I have a asp.net mvc application and am trying to get custom errors working with IISExpress.</p>
  
  <p>Works in Casini fine:</p>
  
  <pre><code>&lt;customErrors mode="On" defaultRedirect="/error"&gt;
    &lt;error statusCode="404" redirect="/error/notfound"/&gt;
  &lt;/customErrors&gt;
  </code></pre>
  
  <p>When I've deployed mvc sites to IIS (7.5) before, all I had to do get my custom errors working was to set:</p>
  
  <pre><code>&lt;httpErrors errorMode="Detailed"/&gt;
  </code></pre>
  
  <p>I've tried explicitly specifying the status codes within the httpErrors section but nothing works. Here's an example:</p>
  
  <pre><code>&lt;httpErrors errorMode="Detailed" defaultResponseMode="Redirect"&gt;
    &lt;clear/&gt;
    &lt;error statusCode="404" path="/error/notfound"/&gt;
  &lt;/httpErrors&gt;
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks
  Ben</p>