Need Help with Performance Counters

  1. #1
    zippo_zx is offline Newbie

    Need Help with Performance Counters

    System.InvalidOperationException: Process performance counter is disabled so the requested opperation could not be performed.
    at System.Diagnostics.NtProcessManager.GetProcessInfo s(PerformanceCounterLib library)
    at System.Diagnostics.NtProcessManager.GetProcessInfo s(String macineName, Boolean isRemoteMachine)
    at System.Diagnostics.ProcessManager.GetProcessInfos( String machineName)
    at System.Diagnostics.process.GetProcessesByName(Stri ng processName, String machineName)
    at System.Diagnostics.process.GetProcessesByName(Stri ng processName)
    at ACDualClient.frmACDualClient.LaunchAC(String sUsername, String sPassword, String sWorld, String sDataCenter, String sFauxDataCenter)

    Was wondering if anyone could tell me how to fix my performance counters. Keep getting this error when i try to use an application.

    Running Windows XP Pro SP2


  2. #2
    jephree is offline ¨*·.¸ «.·°·..·°·.» ¸.·*¨
    Are you actually having problems running applications or are you just curious about the PC log?

    Or is this an application you are developing?

    General Google on the error:

    http://www.google.com/search?sourcei...r+is+disabled+

  3. #3
    zippo_zx is offline Newbie
    having problems running the applications, tried changing the

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\PerfProc\Performance
    REG_DWORD Disable Performance Counters

    1 and 0, when i turned it to 1 and i started the applications it came up with a error right at the start asking if i wanted them enabled, so i clicked yes and it didnt change anything. Ended up changing back to 0 since that is considered on.

    Edit*
    Well Just looked n saw a XP SP3 update going to try that n see what happenes with the Counters

    Edit2* XP SP3 change didnt do anything for the counters.
    Last edited by zippo_zx; 30-05-2008 at 01:45 AM.

  4. #4
    jephree is offline ¨*·.¸ «.·°·..·°·.» ¸.·*¨
    Just to note "edits" leave no indication of posting. Please post a new post with any new info.

    Here is another post I see:

    Do you have the perfc009.dat and perfh009.dat files in your c:\windows\system32 directory?


    If you have your XP CD, you can expand those 2 files from i386 directory and copy them into c:\windows\system32


    Also:


    Open up regedit and navigate to:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\PerfProc\Performance

    Do you have a key there labeled Disable Performance Counters? If so delete that key. Reboot and try again.
    Please backup your registry before deleting anything.

    Even if you have those perf files they may have been corrupted. Is there an application associated with them other than Windows?

    Also:

    What are the applications that are causing this issue?

+ Reply to Thread