Process performance counter is disabled

  • Thread starter Thread starter Wagner Alvarenga Franca
  • Start date Start date
W

Wagner Alvarenga Franca

Hi, I'm getting the error "Process performance counter is disabled..." using
C# only in Windows XP when trying to do Process.GetProcesses(), any help. It
worked fine in Windows 2000.

Wagner Alvarenga
(e-mail address removed)
 
Wagner Alvarenga Franca said:
Hi, I'm getting the error "Process performance counter is disabled..." using
C# only in Windows XP when trying to do Process.GetProcesses(), any help. It
worked fine in Windows 2000.

Wagner Alvarenga
(e-mail address removed)

I had the same issue.. Which was caused by the CLR reading odd Security Policies from the registry.
This is how I solved it.

1. Run regedit.
2. Perform a search on the string "Disable Performance Counters".
3. Set the value to 0
4. Continue search (F3)
5. repeat steps 3, 4 until done.

Hope it helps,

PS: I think there should also be a way to create a System.Configuration entry to solve this, but I havent found it yet.

Cheers,
Tony Tromp
 
Back
Top