I am having some trouble getting Elmah to work with url routing in an asp.net webforms application. Elmah is mapped to “elmah.aspx” and I have tried a couple of variations on:
routes.Add(new Route("elmah.aspx", new StopRoutingHandler()));
Is there a way I can ignore all .aspx pages?
UPDATED:
Please look at step 4 on the elmah Google Code page.
To ignore all .aspx files. You just do:
You could also do:
Please refer to msdn.