title: ASPError object doesn't contain any data on my custom error page
body: <p>I have the following in my <strong>web.config</strong></p>
  <pre><code>&lt;httpErrors errorMode=&quot;Custom&quot;&gt;
      &lt;remove statusCode=&quot;500&quot; subStatusCode=&quot;-1&quot; /&gt;
      &lt;error statusCode=&quot;500&quot; prefixLanguageFilePath=&quot;&quot; path=&quot;/error.asp&quot; responseMode=&quot;ExecuteURL&quot; /&gt;
  &lt;/httpErrors&gt;
  </code></pre>
  <p>The error handling is working in that, when a 500 error occurs, I am sent to my <code>error.asp</code> instead of the default 500 error page.</p>
  <p>The issue is that none of the properties of the <code>ASPError</code> object returned by <code>Server.GetLastError</code> are set.</p>
  <p>For example, in the code below, the error description is</p>
  <pre><code>dim oErr : set oErr = Server.GetLastError
  
  Response.Write &quot;Error Description:  &quot; &amp; oErr.Description&amp; &quot;&lt;br /&gt;&quot;
  </code></pre>
  <hr />
  <h3>Update</h3>
  <p>Based on the thread Joel linked to in the comments, I've updated my web.config to the following:</p>
  <pre><code>&lt;httpErrors errorMode=&quot;Custom&quot;&gt;
      &lt;remove statusCode=&quot;500&quot; subStatusCode=&quot;100&quot; /&gt;
      &lt;error statusCode=&quot;500&quot; subStatusCode=&quot;100&quot; prefixLanguageFilePath=&quot;&quot; path=&quot;/error.asp&quot; responseMode=&quot;ExecuteURL&quot; /&gt;
  &lt;/httpErrors&gt;
  </code></pre>
  <p>This <strong>does</strong> give me data in the ASPError object returned by <code>GetLastError</code>.</p>
  <p>The issue now is that I'm getting the HTML from the beginning of the page where the error is generated, then the rest of the page is the HTML from <code>error.asp</code>.</p>
  <p>I'd really like it to redirect to <code>error.asp</code> instead but changing the web.config to <code>responseMode=&quot;Redirect&quot;</code> doesn't seem to work.</p>