Performance Monitoring - SecurityException, registry access is not allowed

869 views
Skip to first unread message

willia...@gmail.com

unread,
Dec 22, 2013, 7:54:16 PM12/22/13
to rav...@googlegroups.com

Did a install on a Azure VM in IIS with standard license.

I get the following in the logs.

"Could not setup performance counters properly because of access permissions, perf counters will not be used."

I added the RavenApplicationPool to the group "Performance Log Users" and rebooted but the issue persists.

Any ideas how to fix? 

System.Security.SecurityException: Requested registry access is not allowed.
   at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
   at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
   at System.Diagnostics.PerformanceCounterLib.CreateRegistryEntry(String categoryName, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection creationData, Boolean& iniRegistered)
   at System.Diagnostics.PerformanceCounterLib.RegisterCategory(String categoryName, PerformanceCounterCategoryType categoryType, String categoryHelp, CounterCreationDataCollection creationData)
   at System.Diagnostics.PerformanceCounterCategory.Create(String categoryName, String categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData)
   at Raven.Database.Indexing.WorkContext.SetupPerformanceCounter(String name)
   at Raven.Database.Indexing.WorkContext.Init(String name)
The Zone of the assembly that failed was:
MyComputer

Oren Eini (Ayende Rahien)

unread,
Dec 23, 2013, 12:34:07 AM12/23/13
to ravendb
You need to add to: 

Performance Counter Users 


Oren Eini
CEO
Hibernating Rhinos
Office:    +972-4-674-7811
Fax:       +972-153-4622-7811





--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Daniel Fisher

unread,
Dec 30, 2013, 10:30:31 AM12/30/13
to rav...@googlegroups.com
"Performance Log Users" allows to write counters - not to create them...
Reply all
Reply to author
Forward
0 new messages