title: Problem with defaultRedirect in Web.Config <customErrors>
body: <p>I use Asp.net 4.</p>
  <p>Here setting for my <code>Web.Config</code> file.</p>
  <pre><code>&lt;customErrors mode=&quot;On&quot; redirectMode=&quot;ResponseRewrite&quot; defaultRedirect=&quot;/ErrorPages/Oops.aspx&quot;&gt;
      &lt;error statusCode=&quot;404&quot; redirect=&quot;/ErrorPages/404.aspx&quot; /&gt;
  &lt;/customErrors&gt;
  </code></pre>
  <p>I need to apply the <code>defaultRedirect</code> url for any Exception, and use the <code>redirectMode=&quot;ResponseRewrite&quot;</code> for only <strong>Page Not Found 404</strong>.</p>
  <p>With this setting at the moment I can manage properly the <strong>Page Not Found</strong> (I'm able to get the 404.aspx page) but if an exception arise on any other page I get the <code>&quot;Internet Explorer cannot display the webpage&quot;</code> and I'm not able to reach the <code>defaultRedirect Oops.aspx</code>.</p>
  <p>What I'm doing here wrong?</p>