title: Global.asax Application_Error issues
body: <p>I'm trying to handle uncaught exceptions in my Global.asax's Application_Error event.  It currently looks like</p>
  
  <pre><code>Sub Application_Error(ByVal sender as object, ByVal e as EventArgs)
      Server.ClearError()
      Response.Redirect("~/ErrorPages/GenericError.aspx")
  End Sub
  </code></pre>
  
  <p>Throwing a brand new exception in the Page_load of another page with </p>
  
  <pre><code>Throw New Exception()
  </code></pre>
  
  <p>What ends up actually happening is that execution never leaves the source page, and throws the default asp error page citing my exception.  Why isn't it being sent to my error page?</p>
  
  <p>EDIT: fixed <code>Response.Redirect</code>.  Now looks like:</p>
  
  <pre><code>Response.Redirect("http://mysite/ErrorPages/GenericError.aspx")
  </code></pre>
  
  <p>Also made the change to my <code>web.config</code> file that was suggested by <a href="https://stackoverflow.com/a/14777447/312777">krshekhar</a> suggested.  While I am now being sent to my error page, it is using the default redirection instead of the one I feed it in <code>Application_Error</code>.  Any other thoughts?</p>