Solved

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

Posted on 2003-12-11
3
1,399 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DataGridView Events ? 3 37
Tool Box 2 35
Write to file when application closes (by logoff) - VB.NET 1 21
Where can I ask about my ASP.NET MVC project? 6 21
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
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 is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

896 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now