Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nik Wahlberg 639 posts 1237 karma points MVP
    Feb 13, 2019 @ 18:00
    Nik Wahlberg
    0

    Routes error

    Hi Nathan, thanks for what looks like a great package! We're trying it out for a new project and ran into a snag after initial install. The error:


    [ArgumentException: A route named 'umbraco-api-Settings' is already in the route collection. Route names must be unique. Parameter name: name] System.Web.Routing.RouteCollection.Add(String name, RouteBase item) +391 System.Web.Http.RouteCollectionExtensions.MapHttpRoute(RouteCollection routes, String name, String routeTemplate, Object defaults, Object constraints, HttpMessageHandler handler) +211 Umbraco.Web.RouteCollectionExtensions.MapHttpRoute(RouteCollection routes, String name, String url, Object defaults, String[] namespaces) +23 Umbraco.Web.WebBootManager.RouteLocalApiController(Type controller, String umbracoPath) +347 Umbraco.Web.WebBootManager.RoutePluginControllers() +442 Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete) +125 Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +381


    But I don't see any such route in your source. Have you seen this in the past?

    Thanks you kindly!

    -- Nik

  • Nathan Woulfe 447 posts 1665 karma points MVP 5x hq c-trib
    Feb 13, 2019 @ 22:57
    Nathan Woulfe
    0

    Hey Nik, that's a new one on me too.

    Installing via Nuget or zip (not that it should matter, it's the same package)? Into 7.13.x?

    I did a clean install a few days ago, no issues. Anything else running in your install that might be causing it?

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Feb 13, 2019 @ 23:11
    Nik Wahlberg
    0

    Hey Nathan, yes, 7.13.0. I'm having one of the other devs take a look as well, we are leveraging umbraco API for sure, but no custom routes as far as I know.

    I'll keep this thread updated with what we find. Thanks!

  • Nik Wahlberg 639 posts 1237 karma points MVP
    Feb 14, 2019 @ 15:29
    Nik Wahlberg
    100

    Hi Nathan, it turns out that we had a conflicting name of one of our controllers. That's way caused the route conflict. Doh!

    Thanks again.

  • Nathan Woulfe 447 posts 1665 karma points MVP 5x hq c-trib
    Feb 14, 2019 @ 19:11
    Nathan Woulfe
    0

    My favourite flavour of issue - not mine!

Please Sign in or register to post replies

Write your reply to:

Draft