{"id":6692,"date":"2014-04-22T00:20:48","date_gmt":"2014-04-22T00:20:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/maphubs-not-needed-in-signalr-1-01-collection-of-common-programming-errors\/"},"modified":"2014-04-22T00:20:48","modified_gmt":"2014-04-22T00:20:48","slug":"maphubs-not-needed-in-signalr-1-01-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/maphubs-not-needed-in-signalr-1-01-collection-of-common-programming-errors\/","title":{"rendered":"MapHubs not needed in SignalR 1.01?-Collection of common programming errors"},"content":{"rendered":"<p>I am following the Hubs Quick Start Guide in the Signalr Wiki. I get an error in Global.asax, Application_Start on the line RouteTable.Routes.MapHubs().<\/p>\n<p>A route named &#8216;signalr.hubs&#8217; is already in the route collection. Route names must be unique. Parameter name: name<\/p>\n<p>Maybe this is not needed anymore in 1.0.1? It worked fine in 1.0. It is also mentioned in the readme.txt from NuGet that we need the MapHubs command.<\/p>\n<blockquote>\n<p>System.ArgumentException was unhandled by user code Message=A route named &#8216;signalr.hubs&#8217; is already in the route collection. Route names must be unique. Parameter name: name Source=System.Web<br \/>\nParamName=name StackTrace: at System.Web.Routing.RouteCollection.Add(String name, RouteBase item) at System.Web.Routing.RouteCollectionExtensions.Add[T](RouteCollection routes, String name, T item) at System.Web.Routing.RouteCollectionExtensions.MapOwinPath(RouteCollection routes, String name, String pathBase, Action`1 startup) at System.Web.Routing.SignalRRouteExtensions.MapHubs(RouteCollection routes, String name, String path, HubConfiguration configuration) at System.Web.Routing.SignalRRouteExtensions.MapHubs(RouteCollection routes, String path, HubConfiguration configuration) at System.Web.Routing.SignalRRouteExtensions.MapHubs(RouteCollection routes, HubConfiguration configuration) at System.Web.Routing.SignalRRouteExtensions.MapHubs(RouteCollection routes) at SignalrServer.Global.Application_Start(Object sender, EventArgs e) in C:\\RC\\Code\\Signalr\\SignalrServer\\SignalrServer\\Global.asax.cs:line 18 InnerException:<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I am following the Hubs Quick Start Guide in the Signalr Wiki. I get an error in Global.asax, Application_Start on the line RouteTable.Routes.MapHubs(). A route named &#8216;signalr.hubs&#8217; is already in the route collection. Route names must be unique. Parameter name: name Maybe this is not needed anymore in 1.0.1? It worked fine in 1.0. It [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6692","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6692"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6692\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}