1
我使用elmah wiki的官方示例,但此錯誤一直顯示在我的日誌中,我該如何解決?以下是我的elmah配置,非常感謝。無法過濾「從客戶端檢測到潛在危險的Request.Form值」在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>
<elmah>
<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="elmah" />
<security allowRemoteAccess="yes" />
<errorFilter>
<test>
<regex binding="Exception.Message" pattern="(?ix: \b potentially \b.+?\b dangerous \b.+?\b value \b.+?\b detected \b.+?\b client \b)" />
</test>
</errorFilter>
</elmah>
我在另一個線程上找到了答案。 http://stackoverflow.com/questions/10799538/i-cant-get-my-elmah-email-filters-to-work – DanielH