title: Application_Error does not fire?
body: <p>In Webform1.aspx.cs:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      throw new Exception("test exception");
  }
  </code></pre>
  
  <p>In the Global.asax.cs:</p>
  
  <pre><code>protected void Application_Error(object sender, EventArgs e)
  {
      // Code that runs when an unhandled error occurs
      if (Server.GetLastError() is HttpUnhandledException)
          Server.Transfer("ErrUnknown.aspx");
  }
  </code></pre>
  
  <p>But the Application_Error event handler never gets called. Instead I get a runtime error page.</p>
  
  <p>What do I have to do have Application_Error being called after an exception is thrown?</p>