title: track error on defaultRedirect?
body: <p>I've added this in my web.config:</p>
  
  <pre><code>&lt;customErrors mode="RemoteOnly" defaultRedirect="~/Site/Statics/Eroare.aspx"&gt;
            &lt;error statusCode="404" redirect="~/Site/Index.aspx" /&gt;
          &lt;/customErrors&gt;
  </code></pre>
  
  <p>Well, in Page_Load method on Eroare.aspx page i try to print to my internal logs the error which caused this redirect but Server.GetLastError() is null...</p>
  
  <p>Do you know why? Or any other solution to get the exception?</p>
  
  <p>Thanks.</p>