The registry key "Global" is denied

Nov 19, 2013 at 8:49 AM
the sample LiveWebChat run in vs2012 is work,

but publish to iis7.5 , error occurred, "The registry key "Global" is denied,"

anyone help me?
Nov 19, 2013 at 8:50 AM
trace:



[UnauthorizedAccessException: 对注册表项“Global”的访问被拒绝。]
Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) +4037034
Microsoft.Win32.RegistryKey.InternalGetValue(String name, Object defaultValue, Boolean doNotExpand, Boolean checkSecurity) +10624481
Microsoft.Win32.RegistryKey.GetValue(String name) +40
System.Diagnostics.PerformanceMonitor.GetData(String item) +102
System.Diagnostics.PerformanceCounterLib.GetPerformanceData(String item) +186
System.Diagnostics.PerformanceCounterLib.get_CategoryTable() +105
System.Diagnostics.PerformanceCounterLib.GetCategorySample(String category) +17
System.Diagnostics.PerformanceCounterLib.GetCategorySample(String machine, String category) +61
System.Diagnostics.PerformanceCounterCategory.GetCounterInstances(String categoryName, String machineName) +70
System.Diagnostics.PerformanceCounterCategory.GetInstanceNames() +24
SuperSocket.SocketEngine.ProcessPerformanceCounterHelper.GetPerformanceCounterInstanceName(Process process) +71
SuperSocket.SocketEngine.ProcessPerformanceCounterHelper.SetupPerformanceCounters() +65
SuperSocket.SocketEngine.ProcessPerformanceCounterHelper..ctor(Process process) +73
SuperSocket.SocketEngine.PerformanceMonitor..ctor(IRootConfig config, IEnumerable1 appServers, IWorkItem serverManager, ILogFactory logFactory) +91
SuperSocket.SocketEngine.DefaultBootstrap.Initialize(Func
2 serverConfigResolver, ILogFactory logFactory) +1032
SuperSocket.SocketEngine.DefaultBootstrap.Initialize(Func`2 serverConfigResolver) +12
SuperSocket.SocketEngine.DefaultBootstrap.Initialize() +78
SuperWebSocket.Samples.LiveWebChat.Global.StartSuperWebSocketByConfig() +30
SuperWebSocket.Samples.LiveWebChat.Global.Application_Start(Object sender, EventArgs e) +5

[HttpException (0x80004005): 对注册表项“Global”的访问被拒绝。]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +481
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +349
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +305

[HttpException (0x80004005): 对注册表项“Global”的访问被拒绝。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +658
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +189
Coordinator
Nov 19, 2013 at 10:14 AM
Change the application pool's identity to be a service account