Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVC 5.1 Attribute Routing and Elmah.MVC #45

Open
viperguynaz opened this issue Feb 3, 2014 · 2 comments
Open

MVC 5.1 Attribute Routing and Elmah.MVC #45

viperguynaz opened this issue Feb 3, 2014 · 2 comments

Comments

@viperguynaz
Copy link

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
Copy link

@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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants