Solved

"Process performance counter is disabled" exception on Process.GetProcessesByName ( )

Posted on 2003-12-11
3
1,400 Views
Last Modified: 2011-10-03
Calls to Process.GetProcessesByName fail on certain machines with the following exception:

Process performance counter is disabled so the requested operation cannot be peformed

What, if anything needs to be enabled so that this call will work?
0
Comment
Question by:wile_e_coyote
  • 2
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9930448
What kind of process are you trying to access?
0
 
LVL 4

Author Comment

by:wile_e_coyote
ID: 9930492
I'm trying to determine if a particulare app is running, ie.  Process.GetProcessesByName ("notepad")
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 250 total points
ID: 9930554
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question