{"id":6695,"date":"2014-04-22T00:21:24","date_gmt":"2014-04-22T00:21:24","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/routetable-routes-maphubs-throwing-argumentnullexception-only-in-the-windows-azure-emulator-why-collection-of-common-programming-errors\/"},"modified":"2014-04-22T00:21:24","modified_gmt":"2014-04-22T00:21:24","slug":"routetable-routes-maphubs-throwing-argumentnullexception-only-in-the-windows-azure-emulator-why-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/routetable-routes-maphubs-throwing-argumentnullexception-only-in-the-windows-azure-emulator-why-collection-of-common-programming-errors\/","title":{"rendered":"RouteTable.Routes.MapHubs() throwing ArgumentNullException only in the Windows Azure emulator. Why?-Collection of common programming errors"},"content":{"rendered":"<p>System.ArgumentNullException was unhandled HResult=-2147467261 Message=Value cannot be null. Parameter name: instanceName Source=Microsoft.AspNet.SignalR.Core ParamName=instanceName<\/p>\n<p>StackTrace: at Microsoft.AspNet.SignalR.Hosting.HostDependencyResolverExtensions.InitializeHost(IDependencyResolver resolver, String instanceName, CancellationToken hostShutdownToken) at Owin.OwinExtensions.UseType[T](IAppBuilder builder, Object[] args) at Owin.OwinExtensions.MapHubs(IAppBuilder builder, String path, HubConfiguration configuration) at System.Web.Routing.SignalRRouteExtensions.c_<em>DisplayClass7.b<\/em>_5(IAppBuilder map) at Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(Action<code>1 startup) at Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build(Action<\/code>1 startup) 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 Cerebello.MvcApplication.RegisterRoutes(RouteCollection routes) in c:\\Projetos\\Cerebello\\Cerebello\\CerebelloWebRole\\Global.asax.cs:line 25 at CerebelloWebRole.Code.Helpers.RouteHelper.RegisterAllRoutes() in c:\\Projetos\\Cerebello\\Cerebello\\CerebelloWebRole\\Code\\Helpers\\RouteHelper.cs:line 82 at CerebelloWebRole.WebRole.Run() in c:\\Projetos\\Cerebello\\Cerebello\\CerebelloWebRole\\WebRole.cs:line 23 at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRoleInternal() at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRole() at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.b__2() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>System.ArgumentNullException was unhandled HResult=-2147467261 Message=Value cannot be null. Parameter name: instanceName Source=Microsoft.AspNet.SignalR.Core ParamName=instanceName StackTrace: at Microsoft.AspNet.SignalR.Hosting.HostDependencyResolverExtensions.InitializeHost(IDependencyResolver resolver, String instanceName, CancellationToken hostShutdownToken) at Owin.OwinExtensions.UseType[T](IAppBuilder builder, Object[] args) at Owin.OwinExtensions.MapHubs(IAppBuilder builder, String path, HubConfiguration configuration) at System.Web.Routing.SignalRRouteExtensions.c_DisplayClass7.b_5(IAppBuilder map) at Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(Action1 startup) at Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build(Action1 startup) at System.Web.Routing.RouteCollectionExtensions.MapOwinPath(RouteCollection routes, String name, String pathBase, Action`1 startup) at System.Web.Routing.SignalRRouteExtensions.MapHubs(RouteCollection routes, String [&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-6695","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6695","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=6695"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6695\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}