alexbeletsky / elmah-mvc

Painless integration of ELMAH into ASP.NET MVC application
http://nuget.org/packages/Elmah.MVC
Apache License 2.0
266 stars 61 forks source link

MVC 5.1 Attribute Routing and Elmah.MVC #45

Open viperguynaz opened 10 years ago

viperguynaz commented 10 years ago

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();
RehanSaeed commented 9 years ago

@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?

peterdew commented 6 years ago

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?