4

I am getting an error of some sort that causes error.cshtml to be displayed.

I dont see what settings are making it do that, plus I dont like the fact that elmah doesnt see the error either.

update: I have seen the elmah answer about how to get it to log things that get custom handled. What I don't understand is why I am getting into this state. I have nothing marked with HandleError attribute

update2: I think its because there is a global filter added using HandleErrorAttribute. THis effectively sets all controller actions to use the default error handling

pm100
  • 48,078
  • 23
  • 82
  • 145

1 Answers1

2

In the wiki on the open source hosting for the ELMAH project, I found this page about setting up ELMAH with MVC. After reading through all the comments, at the very bottom, there was a link to this stack overflow question, which should help you get past the problem you are having.

Community
  • 1
  • 1
Nick Larsen
  • 18,631
  • 6
  • 67
  • 96
  • 1
    With all due respect to Atif, who is awesome, I think Ivan Zlatev came up with a more elegant solution as an answer to the same question: http://stackoverflow.com/questions/766610/how-to-get-elmah-to-work-with-asp-net-mvc-handleerror-attribute/779961#5936867 – Paul Keister Mar 19 '13 at 19:25