title: Server.Transfer in Global.asax
body: <p>I have a custom error handler in the global.asax's Application_Error method, when an error occurs I use the following code to transfer user to the error page:</p>
  
  <pre><code>Server.Transfer("/Error/");
  </code></pre>
  
  <p>However without specifying the actual page name the code above breaks with "<strong>Error executing child request for /Error/</strong>" exception.</p>
  
  <p>So if I use <code>Server.Transfer("/Error/Default.aspx")</code> it works fine with no problems.</p>
  
  <p>Also using <code>Response.Redirect("/Error/")</code> works fine too, however we want to keep using Server.Transfer to retain URL displayed in the address bar when the error page is displayed so users can simply refresh the page to retry accessing the original offending URL.</p>
  
  <p>Would be grateful if anyone can comment on how to get the Server.Transfer method working without specifying the actual aspx page name.</p>
  
  <p>Many thanks.</p>