title: can i redirect from the global.asax to controller action?
body: <p>i am trying to show an error page when the user uploads a file that is over the limit (see <a href="https://stackoverflow.com/questions/665453/catching-maximum-request-length-exceeded">Catching &quot;Maximum request length exceeded&quot;</a>)</p>
  
  <p>in the global.asax i want to redirect to a controller action, so something like thisbut it does not work ?:</p>
  
  <pre><code>private void Application_Error(object sender, EventArgs e)
  {
      if (GlobalHelper.IsMaxRequestExceededEexception(this.Server.GetLastError()))
      {
          this.Server.ClearError();
          return RedirectToAction("Home","Errorpage");
      }
  }
  </code></pre>