Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old July 21st, 2005, 10:00 AM
Raj
Guest
 
Posts: n/a
Default Process.GetProcesses() throws exception: process performance counter is disabled

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
Default

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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.