Copied to clipboard

Flag this post as spam?

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


  • Bobi 352 posts 956 karma points
    Mar 29, 2018 @ 03:12
    Bobi
    0

    Local Machine Server Error

    Hi, I seem to be getting the following localhost server error when running solution in Visual Studio:

    A route named 'articulatemetaweblog1066' is already in the route collection. Route names must be unique.

    Stack Trace:

    [ArgumentException: A route named 'articulate_metaweblog_1066' is already in the route collection. Route names must be unique.
    Parameter name: name]
       System.Web.Routing.RouteCollection.Add(String name, RouteBase item) +3218291
       Articulate.ArticulateRoutes.MapMetaWeblogRoute(RouteCollection routes, String nodeRoutePath, IPublishedContent node) in X:\Projects\Articulate\Articulate.Project\src\Articulate\ArticulateRoutes.cs:236
       Articulate.ArticulateRoutes.MapRoutes(RouteCollection routes, ContextualPublishedCache umbracoCache, UrlProvider umbracoUrlProvider) in X:\Projects\Articulate\Articulate.Project\src\Articulate\ArticulateRoutes.cs:112
       Articulate.UmbracoEventHandler.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) in X:\Projects\Articulate\Articulate.Project\src\Articulate\UmbracoEventHandler.cs:46
       Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +37
       Umbraco.Core.CoreBootManager.<Complete>b__a(IApplicationEventHandler x) +230
       Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable`1 items, Action`1 action) +141
       Umbraco.Core.CoreBootManager.Complete(Action`1 afterComplete) +287
       Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete) +114
       Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +297
       Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e) +34
    
    [HttpException (0x80004005): A route named 'articulate_metaweblog_1066' is already in the route collection. Route names must be unique.
    Parameter name: name]
       System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +10061317
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +173
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
    
    [HttpException (0x80004005): A route named 'articulate_metaweblog_1066' is already in the route collection. Route names must be unique.
    Parameter name: name]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10042604
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
    

    Any ideas? The application works great on the deployment server. Or any ideas on how to duplicate fully the deployment server version to local? I don't know why this happened. It used to work, but all of a sudden it now gives this error on the local machine.

  • Daniel Chenery 119 posts 465 karma points
    Mar 29, 2018 @ 22:04
    Daniel Chenery
    100

    Have you tried a clean/rebuild? It could be there's an extra dll in the bin (from a rename) perhaps. You should be safe to delete the bin folder and have it regenerate. Do back up just in case though!

    Otherwise, have you actually registered a second custom route with the same name unknowingly?

  • Bobi 352 posts 956 karma points
    Mar 30, 2018 @ 01:33
    Bobi
    0

    One thing I do notice is that the Articulate blog page no longer loads...any ideas as to what can be happening/a solution?

  • Bobi 352 posts 956 karma points
    Mar 30, 2018 @ 01:11
    Bobi
    0

    @Daniel, you are amazing!

    I don't know why this happened. I haven't opened the project for months.

    What worked was this: deleting the bin folder, and then clean and rebuilding the solutions.

    After that I ran the website, and it worked.

    Thank you so much!

Please Sign in or register to post replies

Write your reply to:

Draft