Solved

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

Posted on 2003-12-11
3
1,403 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

751 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