Exception Logging for WCF Services using ELMAH

前端 未结 6 865
暗喜
暗喜 2020-11-30 18:07

We are using the excellent ELMAH to deal with unhandled exceptions in an ASP.NET 3.5 web application. This works extremely well for all of the site apart from WCF services w

6条回答
  •  心在旅途
    2020-11-30 18:49

    I haven't tried doing this explicitly with the REST stuff, and haven't used ELMAH myself, but another option worth looking into might be to hook into WCF using an IDispatchMessageInspector instead of an IErrorHandler.

提交回复
热议问题