title: Using handleError out of the box in mvc3, problem
body: <p>I trying to do something like that</p>
  
  <p>First, Create a new mvc 3 project in visual studio 2010</p>
  
  <p>Next, Turning on the custom error in the Views\Shared\Web.config </p>
  
  <pre><code> &lt;system.web&gt;
      &lt;customErrors mode="On"/&gt;
   ...
  </code></pre>
  
  <p>And then, I put the  Tag in the Index ActionResult, Home Controller</p>
  
  <pre><code>Public Class HomeController
      Inherits System.Web.Mvc.Controller
  
  
      &lt;HandleError()&gt; _
      Function Index() As ActionResult
          ViewData("Message") = "Welcome to ASP.NET MVC!"
          Throw New InvalidOperationException
          Return View()
      End Function
  
      Function About() As ActionResult
          Return View()
      End Function
  
  
  
  End Class
  </code></pre>
  
  <p>Finally run the app, and always show the yellow message error. I review a lot of examples and always indicated that is correct, but doesn't work.</p>
  
  <p>I appreciate your help</p>