I have all the settings, and I can go to /elmah.axd, but I cause all these errors and it will not log any of them, it just says "errors are not logged" ... what the hell did I do wrong ?
Here is the stuff I added to my 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>
ALSO: That was already at the beginning of my RegisterRoutes ()
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
I read that this doesn't make any difference with ASP.NET MVC 1.0, though, presumably (on the ELMAH site ...)
source share