【发布时间】:2010-01-06 20:33:50
【问题描述】:
我已经全部设置好了,我可以浏览到 /elmah.axd,但我一直在导致所有这些错误,它不会记录任何一个,它只是说“没有记录错误”......这到底是怎么回事我做错了吗?
这是我添加到 web.config 中的内容:
<configSections>
<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" />
</sectionGroup>
</configSections>
<httpHandlers>
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
</httpHandlers>
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
</httpModules>
<elmah>
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" />
<security allowRemoteAccess="yes" />
</elmah>
另外:这已经在我的 RegisterRoutes() 开始处
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
据我所知,ASP.NET MVC 1.0 已经不再重要了(根据 ELMAH 网站...)
【问题讨论】:
标签: asp.net-mvc elmah