Elmah not logging exceptions for http post requests in MVC app - if the request contains XML
- 阅读更多 关于 Elmah not logging exceptions for http post requests in MVC app - if the request contains XML
I've come across a weird problem in my MVC4 (RC) application. (running on .NET 4.0) I have just setup Elmah for logging exceptions / errors. I basically installed the Elmah.MVC and elmah.sqlserver NuGet packages. (versions 2.0.0 and 1.2 respectively) It seemed to work fine out of the box - I can go to the elmah page and view errors: http://myserver/elmah for example, if I create some 404 errors, they appear in this log. What is not working is this: I have a standard MVC controller with a [HttpPost] action. I've set it up so it will always throw an exception: public class TestController :