From a new MVC 3 project, I changed the Index () action to throw an exception. I expect the Error.chhtml view to display because I set <customErrors mode="On" /> to web.config. Instead, I still get a "yellow screen of death" while working from VS.
<system.web> <customErrors mode="On" /> ...
The My HandleError attribute is set globally from global.asax.cs.
public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); }
... unmodified, by default for the project. I worked against IIS express and VS Dev Server. Nothing results in a user error page. What am I missing?
source share