开发者

asp.net mvc: What makes error.cshtml run (and in the process not log to elmah)

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜