Process performance counter is disabled

  • Thread starter Wagner Alvarenga Franca
  • 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)
 
Joined
Dec 13, 2005
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top