Okay, I think I've ready every post on StackOverflow regarding this and still no luck.
I've confirmed in my global.asax that the HandleErrorAttribute filter is being registered.
I've set customErrors mode="On" in my web.config.
I've changed Layout=null to Layout="~/Views/Shared/_Layout.cshtml" in my Error.cshtml file.
I then added a throw Exception() in my Account controller's Index action and browse to localhost:5050/Account/Index but I wind up with the standard YSOD error stack stuff.
I've even tried the following (although from my understanding it shouldn't matter):
- Add
[HandleError]and[HandleError(View="Error")]to my controller. - Add
defaultRedirect="Error"to my customErrors in web.config
What else can I do? Is there a way to tell what's going on in the HandleError filter or to tell if the Error View is being generated at all?
Thanks for your help.
P.S. Incidentally, I'm using VS2010, IE9 & Chrome
