我已经在一个WCF应用程序上设置了Elmah,并且正在登录到sql服务器.一切似乎在将数据插入Elmah_error表中的工作.但表中有5个错误,Elmah.axd只显示2个错误.
额外信息
> System.Web.HttpRequestValidationException
> System.Exception
> System.Exception
> System.ArgumentException
> System.Web.HttpRequestValidationException
> System.Web.HttpException
Web.config设置
<httpModules> <add name="ErrorLog" type="Elmah.ErrorLogModule,Elmah" /> <add name="ErrorMail" type="Elmah.ErrorMailModule,Elmah" /> <add name="ErrorFilter" type="Elmah.ErrorFilterModule,Elmah" /> </httpModules>
<system.webServer> <modules runAllManagedModulesForAllRequests="true"> <add name="ErrorLog" type="Elmah.ErrorLogModule,Elmah" preCondition="managedHandler" /> <add name="ErrorMail" type="Elmah.ErrorMailModule,Elmah" preCondition="managedHandler" /> <add name="ErrorFilter" type="Elmah.ErrorFilterModule,Elmah" preCondition="managedHandler" /> </modules> <validation validateIntegratedModeConfiguration="false" /> </system.webServer>
<system.webServer> <handlers> <add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory,Elmah" preCondition="integratedMode" /> </handlers> </system.webServer>