http status code 404 - Ektron and Elmah - 404 Errors not being logged -
i configuring elmah 1.2 log errors within our ektron 9.1 application, not log 404 errors. elmah functional logging other errors (including unhandled exceptions), not 404 errors. not running mvc environment / 3-tier ektron architecture, still using traditional asp.net / ektron web forms solution.
i know elmah logs these errors default, i'm wondering if i'm missing regards how elmah interacting ektron. there's not information out there on topic, , 1 article found dated 2010, information severely outdated.
it's different urls end in .aspx , other ones. if user goes site , accesses /thisfileisnothere.html static file handler handle that. ektron replaces static file handler ekdavhttphandlerfactory. ektron's handler doesn't throw exception. doesn't trigger application.error event. sets statuscode 404. if wanted custom log error elmah, hook application.postrequesthandlerexecute , check response.statuscode
if user tries go /thispageisnthere.aspx different handler handle url , trigger application.error event elmah should catch.
Comments
Post a Comment