473,770 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Performance Counter is Disabled so the requested operation cannot be performed

17 New Member
Hello,

The application I am using works on most machines except one where in it throws the following exception...

Error:
Process Performance Counter is Disabled, so requested operation cannot be performed.

Stack Trace:

at System.Diagnost ics.NtProcessMa nager.GetProces sInfos(Performa nceCounterLib library)
at System.Diagnost ics.NtProcessMa nager.GetProces sInfos(String machineName, Boolean isRemoteMachine )
at System.Diagnost ics.ProcessMana ger.GetProcessI nfos(String machineName)
at System.Diagnost ics.Process.Get ProcessesByName (String processName, String machineName)
at System.Diagnost ics.Process.Get ProcessesByName (String processName)



After some research on this...

People have put forth two solutions..

1) Set entires in registry:

Link: http://www.dotnet247.c om/247reference/msgs/51/255103.aspx

As per the above link i tried doing wht they have suggested but I cannot find "Disable Performance Counters"..



2) Add the user as an admin

Link: http://www.ureader.com/message/303147.aspx

In the above link the person said:
On W2K3, you will get - System.InvalidO perationExcepti on: Process
performance counter is disabled, so the requested operation cannot be
performed - if you try to get process performance information using the
Process class under a non-admin account.
As a workarround you could add the non-admin accounts to the "Performanc e
Counter Users" Group on W2K3.

I dont see any performnace counter user group? how do i create this group?


Could some one please help me with wht is to be done?

Appreciate it..
Thanks,
JSha
Aug 23 '07 #1
0 1637

Sign in to post your reply or Sign up for a free account.

Similar topics

1
14698
by: Raj | last post by:
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...
6
6557
by: Scott CM | last post by:
I have a multi-part question regarding trigger performance. First of all, is there performance gain from issuing the following within a trigger: SELECT PrimaryKeyColumn FROM INSERTED opposed to: SELECT * FROM INSERTED
16
1687
by: Tamir Khason | last post by:
Follow the code I have to check the performance double a = r.Next(9)*1e307; DateTime d = DateTime.Now; double b = Math.Pow(a,1/(double)100); TimeSpan tm = DateTime.Now - d;
1
8491
by: Max | last post by:
I'm trying to get the process id of some application and I get an error for this line: Process myApplications= Process.GetProcessesByName("MyApplication"); The error says: System.InvalidOperationException: Process performance counter is disabled, so the requested operation cannot be performed. at System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLib library) at...
0
3834
by: J Gao | last post by:
Hi, All, I got this error when trying to compile a web project. The file 'bin\Kennel.dll' cannot be copied to the run directory. The requested operation cannot be performed on a file with a user-mapped section open. Any idea why it happens? Thanks Note: In the project, I use Visual Source Safe control.
2
2525
by: Jonesgj | last post by:
Hi, I have a test box which I would like to monitor CPU usage and run queue during the day. I don't want to buy any 3rd party tool, if I can do it easily, as I only need to monitor the box's performance over a week. I thought I could just create a .Net app or service with a timer that gets back this data every so many minutes..
7
12105
by: Peter Ritchie | last post by:
I'm writing a Web Service and I would like to add performance counter data for monitoring performance of the Web Service's operations over time and load. The problem is, I get the "Requested registry access is not allowed." SecurityException when I try and create the performance counter category via PerformanceCounterCategory.Create(). I understand the login used to run the Web Service does not have access to the registry keys...
1
15518
by: JSha | last post by:
Hello, The application I am using works on most machines except one where in it throws the following exception... Error: Process Performance Counter is Disabled, so requested operation cannot be performed. Stack Trace: at System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLib library)
30
3545
by: galiorenye | last post by:
Hi, Given this code: A** ppA = new A*; A *pA = NULL; for(int i = 0; i < 10; ++i) { pA = ppA; //do something with pA
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.