views:

117

answers:

0

I have a base controller with a HandleErrorAttibute decorating the class declaration like so:

    [HandleError(View="Error", Order=1)]
public class BaseController : Controller

If I put [HandleError(View="DifferentError", Order=2)] on a subclassed controller method and an exception occurs, I get the Error.aspx rendered view. I expect this because of the Order parameter in the attribute.

However, if I switch the Order parameter to [HandleError(View="DifferentError", Order=0)] on the same method, I get a HTTP 500 error. I would expect to see the DifferentError.aspx view rendered not a HTTP 500 error or the Error.aspx.

Any ideas here?

I'm using ASP.Net RC1.