Connecting Tech Pros Worldwide Help | Site Map

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

  #1  
Old July 21st, 2005, 10:00 AM
Raj
Guest
 
Posts: n/a
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
  #2  
Old July 28th, 2006, 02:07 PM
Newbie
 
Join Date: Jul 2006
Posts: 1

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Process.GetProcesses() throws exception: process performance counter is disabled Raj answers 0 November 22nd, 2005 04:16 AM