我已经设置好了,我可以浏览到 /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 网站......)