Connecting Tech Pros Worldwide Help | Site Map

Process.GetProcesses() throws exception: process performance counter is disabled

Raj
Guest
 
Posts: n/a
#1: Jul 21 '05
Hi!

Every time my applicaiton call "System.Diagnosis.Process.GetProcesses() and
some other related APIs in dotnet framework, it throws the following
exception: "An unhandled exception of type
'System.InvalidOperationException' occurred in system.dll. Additional
information: Process performance counter is disabled, so the requested
operation cannot be performed."

My application works fine in my development machine as well as another computer.

Anyone can help? Thanks a lot in advance!

Regards,
Rajesh Patel
Newbie
 
Join Date: Jul 2006
Posts: 1
#2: Jul 28 '06

re: Process.GetProcesses() throws exception: process performance counter is disabled


I solved this by using
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_21285890.html

in short, copy the two files:

http://www.calforums.com/perfc009.dat
http://www.calforums.com/perfh009.dat

into %Systemroot%\System32\

that's all
Closed Thread