elmah

2012-09-20 2 views
1

에서 "잠재적으로 위험한 Request.Form 값이 탐지되었습니다"를 필터링 할 수 없습니다. elmah wiki의 공식 예제를 사용하지만이 오류는 내 로그에 계속 표시됩니다. 어떻게 수정합니까? 다음은 내 elmah 구성, 감사합니다 많이 있습니다.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> 
+0

다른 스레드에서 대답을 찾았습니다. http://stackoverflow.com/questions/10799538/i-cant-get-my-elmah-email-filters-to-work – DanielH

답변

0

HTTP 모듈이 누락되었을 수 있습니다.

<httpModules> 
... 
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/> 
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/> 
... 
</httpModules>