elmah-mvc icon indicating copy to clipboard operation
elmah-mvc copied to clipboard

MVC 5.1 Attribute Routing and Elmah.MVC

Open viperguynaz opened this issue 11 years ago • 2 comments

Just added MVC 5.1 to a project with Attribute Routing. This breaks the custom Elmah.Mvc routing (especially with Areas). A simple work-around, for now, is in RouteConfig first Map attribute routes, then init Elmah.Mvc, then register areas:

    routes.MapMvcAttributeRoutes();
    Elmah.Mvc.Bootstrap.Initialize();
    AreaRegistration.RegisterAllAreas();

viperguynaz avatar Feb 03 '14 20:02 viperguynaz

@viperguynaz This is exactly what I need. I get the following exception on the second line. Did you remove some configuration to stop Initialize being called the first time?

"A route named 'Elmah.Mvc' is already in the route collection. Route names must be unique."

I raised this issue on Elmah.MVC. Your issue is over a year old!!! Is this project dead?

RehanSaeed avatar Apr 15 '15 16:04 RehanSaeed

This issue is 3 years old now, and still open. @alexbeletsky, I use and like this elmah-mvc a lot so I just opened this repository to see if I can contribute somewhere. There are 32 open issues though of wich 12 are from 2015 or older; yikes ;) Can I help there somehow?

peterdew avatar Oct 16 '17 06:10 peterdew