title: Response.Redirect leading to custom Error.aspx page in asp.net
body: <p>I have a web application where I am doing a Response.Redirect("Register.aspx") page in a button_click event.
  However, when I am step through this code, when the Response.Redirect("Register.aspx") statement executes... the browser becomes the active window &amp; the status bar below says "waiting for response from localhost..." and then after 5 seconds the custom error page is displayed.  </p>
  
  <p>How can I debug this to see what is causing the error page to be displayed?</p>