Registry exception #1244

Closed
yesman85 opened this Issue Jan 5, 2013 · 6 comments

Projects

None yet

3 participants

@yesman85
yesman85 commented Jan 5, 2013

When I run
RouteTable.Routes.MapHubs();
in my ASP.NET 4.5 MVC4 application I get the following exception:
The specified registry key does not exist.

But the stacktrace doesn't mention which registry key is missing, when I check with Process Monitor I see that tons of reg keys are missing.

Are there any registry keys needed that are not added with the nuget package manager?

@davidfowl
Member

Can you paste the stack trace?

@yesman85
yesman85 commented Jan 5, 2013

Call stack:

mscorlib.dll!Microsoft.Win32.RegistryKey.Win32Error(int errorCode, string str) + 0xdc bytes 
mscorlib.dll!Microsoft.Win32.RegistryKey.InternalGetValue(string name, object defaultValue, bool doNotExpand, bool checkSecurity) + 0x5c3 bytes 
mscorlib.dll!Microsoft.Win32.RegistryKey.GetValue(string name) + 0x29 bytes 
System.dll!System.Diagnostics.PerformanceCounterLib.GetStringTable(bool isHelp) + 0x102 bytes   
System.dll!System.Diagnostics.PerformanceCounterLib.NameTable.get() + 0x5b bytes    
System.dll!System.Diagnostics.PerformanceCounterLib.CategoryTable.get() + 0x2fc bytes   
System.dll!System.Diagnostics.PerformanceCounterLib.CategoryExists(string machine, string category) + 0xb5 bytes    
System.dll!System.Diagnostics.PerformanceCounterCategory.Exists(string categoryName, string machineName) + 0x80 bytes   
System.dll!System.Diagnostics.PerformanceCounterCategory.Exists(string categoryName) + 0xd bytes    
Microsoft.AspNet.SignalR.Core.dll!Microsoft.AspNet.SignalR.Infrastructure.PerformanceCounterManager.LoadCounter(string categoryName, string counterName, string instanceName) + 0x39 bytes  
Microsoft.AspNet.SignalR.Core.dll!Microsoft.AspNet.SignalR.Infrastructure.PerformanceCounterManager.SetCounterProperties(string instanceName) + 0xd0 bytes  
Microsoft.AspNet.SignalR.Core.dll!Microsoft.AspNet.SignalR.Infrastructure.PerformanceCounterManager.Initialize(string instanceName, System.Threading.CancellationToken hostShutdownToken) + 0xc1 bytes  
Microsoft.AspNet.SignalR.Core.dll!Microsoft.AspNet.SignalR.DependencyResolverExtensions.InitializePerformanceCounters(Microsoft.AspNet.SignalR.IDependencyResolver resolver, string instanceName, System.Threading.CancellationToken hostShutdownToken) + 0x52 bytes    
Microsoft.AspNet.SignalR.Core.dll!Microsoft.AspNet.SignalR.DependencyResolverExtensions.InitializeHost(Microsoft.AspNet.SignalR.IDependencyResolver resolver, string instanceName, System.Threading.CancellationToken hostShutdownToken) + 0xb4 bytes   
Microsoft.AspNet.SignalR.Owin.dll!Owin.OwinExtensions.UseType<Microsoft.AspNet.SignalR.Owin.Handlers.HubDispatcherHandler>(Owin.IAppBuilder builder, object[] args) + 0xc0 bytes    
Microsoft.AspNet.SignalR.Owin.dll!Owin.OwinExtensions.MapHubs(Owin.IAppBuilder builder, Microsoft.AspNet.SignalR.IDependencyResolver resolver) + 0x66 bytes 
Microsoft.AspNet.SignalR.SystemWeb.dll!Microsoft.AspNet.SignalR.RouteExtensions.MapHubs.AnonymousMethod__2(Owin.IAppBuilder map) + 0x2e bytes   
Microsoft.Owin.Host.SystemWeb.dll!Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(System.Action<Owin.IAppBuilder> startup) + 0x208 bytes    
Microsoft.Owin.Host.SystemWeb.dll!Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build(System.Action<Owin.IAppBuilder> startup) + 0x57 bytes 
Microsoft.Owin.Host.SystemWeb.dll!Microsoft.Owin.Host.SystemWeb.RouteCollectionExtensions.MapOwinRoute(System.Web.Routing.RouteCollection routes, string name, string pathBase, System.Action<Owin.IAppBuilder> startup) + 0x5c bytes   
Microsoft.AspNet.SignalR.SystemWeb.dll!Microsoft.AspNet.SignalR.RouteExtensions.MapHubs(System.Web.Routing.RouteCollection routes, string url, Microsoft.AspNet.SignalR.IDependencyResolver resolver) + 0x2ce bytes 
Microsoft.AspNet.SignalR.SystemWeb.dll!Microsoft.AspNet.SignalR.RouteExtensions.MapHubs(System.Web.Routing.RouteCollection routes, Microsoft.AspNet.SignalR.IDependencyResolver resolver) + 0x31 bytes  
Microsoft.AspNet.SignalR.SystemWeb.dll!Microsoft.AspNet.SignalR.RouteExtensions.MapHubs(System.Web.Routing.RouteCollection routes) + 0x3d bytes 
Framework.dll!Framework.MvcApplication.Application_Start() Line 27 + 0x11 bytes C#
[Native to Managed Transition]  
System.Web.dll!System.Web.HttpApplication.InvokeMethodWithAssert(System.Reflection.MethodInfo method, int paramCount, object eventSource, System.EventArgs eventArgs) + 0x81 bytes  
System.Web.dll!System.Web.HttpApplication.ProcessSpecialRequest(System.Web.HttpContext context, System.Reflection.MethodInfo method, int paramCount, object eventSource, System.EventArgs eventArgs, System.Web.SessionState.HttpSessionState session) + 0xdf bytes 
System.Web.dll!System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(System.Web.HttpContext context, System.Web.HttpApplication app) + 0x120 bytes    
System.Web.dll!System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(System.IntPtr appContext, System.Web.HttpContext context, System.Reflection.MethodInfo[] handlers) + 0x77 bytes 
System.Web.dll!System.Web.HttpApplication.InitSpecial(System.Web.HttpApplicationState state, System.Reflection.MethodInfo[] handlers, System.IntPtr appContext, System.Web.HttpContext context) + 0xad bytes    
System.Web.dll!System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(System.IntPtr appContext, System.Web.HttpContext context) + 0x151 bytes  
System.Web.dll!System.Web.Hosting.PipelineRuntime.InitializeApplication(System.IntPtr appContext) + 0x129 bytes 
[Appdomain Transition]  
[Native to Managed Transition]  
@yesman85
yesman85 commented Jan 5, 2013

After running "signalr.exe ipc" it works now, not sure why because the demo app does work, I run VS2012 without elevated permissions.

@davidfowl
Member

What's the exception type that gets thrown?

@davidfowl
Member

This should be fixed now 8adb268

@davidfowl davidfowl was assigned Jan 6, 2013
@Xiaohongt
Contributor

verified

@Xiaohongt Xiaohongt closed this Jan 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment