title: ASP.net MVC [HandleError] not catching exceptions
body: <p>In two different application, one a custom the other the sample MVC application you get with a new VS2008 MVC project, [HandleError] is not catching exceptions.</p>
  
  <p>In the sample application I have: </p>
  
  <pre><code>[HandleError]
  public class HomeController : Controller
  {
      public ActionResult Index()
      {
          ViewData["Message"] = "Welcome to ASP.NET MVC!";
          throw new Exception();
          return View();
      }
  
      public ActionResult About()
      {
          return View();
      }
  }
  </code></pre>
  
  <p>which is just the default controller with an exception being thrown for testing.</p>
  
  <p>But it doesn't work.  Instead of going to the default error.aspx page it shows the debug information in the browser.</p>
  
  <p>The problem first cropped up in a custom application I'm working on which led me to test it with the sample application.  Thinking it had something to do with changes I made in the custom application, I left the sample application completely unchanged with the exception (yuck) of the throw in the index method.</p>
  
  <p>I'm stumped.  What am I missing?</p>