[HandleError] - IErrorFilter - ?

11 views
Skip to first unread message

Yort

unread,
Jul 28, 2010, 3:32:16 PM7/28/10
to MVC Turbine
I am a newbie with MVC Turbine and a relative newbie with ASP.NET MVC
2. As I understand, in ASP.NET MVC 2 you can decorate a controller
class with a HandleErrorAttribute, and that instructs the framework to
display an Error.aspx page (in the corresponding View folder or in the
Shared view folder) if an unhandled exception is thrown.

In my case, and exception is thrown in a class method called from the
controller class, but the Error.aspx page is not shown. I noticed that
MVC Turbine has "added support for ... IErrorFilter". Is that a clue
to what I am missing? Does [HandleError] not work anymore and does it
have to do with IErrorFilter?

-Troy

Yort

unread,
Jul 28, 2010, 4:34:13 PM7/28/10
to MVC Turbine
Never mind... the <customErrors mode ="On"></customErrors> setting
isn't in the default web.config in the MVC2 project template. My bad.
Reply all
Reply to author
Forward
0 new messages