Access to the registry key 'Global' is denied RRS feed

  • Question

  • Hello,

    When doing the following line from a Windows service that's written in VB.NET:


    If Not PerformanceCounterCategory.Exists("My Category") Then

    I get a "Access to the registry key 'Global' is denied" error.  I added the acccount that the windows service runs under to the Performance Monitor Users group on the Win2003 x32 server.  On my Win7x64 dev box, I don't get this error, even when trying to access a fictitious performance counter category.  Any ideas?




    Friday, July 1, 2011 9:40 PM