我试图让elmah忽略404错误,但它们总是出现。我使用的是asp.net MVC3。
我有过
<elmah>
<errorLog type="Elmah.SqlErrorLog, Elmah" logPath="~/App_Data" connectionStringName="ConnectionString" applicationName="/" />
<errorFilter>
<test>
<equal binding="HttpStatusCode" value="404" type="Int32" />
</test>
</errorFilter>
<security allowRemoteAccess="0" />
</elmah>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>我是不是遗漏了什么?我使用nuget来生成web.config,所以我会认为所有内容都在web.config中。
发布于 2011-06-23 07:01:32
可能像这篇文章中提到的模块顺序有问题?
https://stackoverflow.com/questions/6432816
复制相似问题