【发布时间】:2011-10-10 09:19:23
【问题描述】:
我尝试忽略 Elmah 中的 System.Web.HttpException (0x80072746)。我尝试了以下方法,但它们不起作用:
<errorFilter>
<test>
<equal binding="HttpStatusCode" value="0x80072746" type="UInt32" />
</test>
</errorFilter>
和
<errorFilter>
<test>
<equal binding="HttpStatusCode" value="0x80072746" type="Int32" />
</test>
</errorFilter>
和
<errorFilter>
<test>
<equal binding="HttpStatusCode" value="0x80072746" type="String" />
</test>
</errorFilter>
我找到了这个线程,但它告诉我要转换它...我不知道如何在 Elmah Config 中转换它: How to catch a specific HttpException (#0x80072746) in an IHttpHandler
有人有想法吗?
提前非常感谢!
【问题讨论】:
标签: elmah