Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

Help to resolve <<Process performance counter is disabled, so the requested operation cannot be performed.>> Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dreamamit2001@yahoo.com - 25 May 2005 09:59 GMT
Hi,

I have a query on Process Performance Counter in
System.Diagnostics.Process FAQ section.

We have developed VB.NET Application named office solutions, which
gives the following Error on

Win XP Pro, 5.1.2600 sp1 configuration

System.InvalidOperationException: Process performance counter is
disabled, so the requested operation cannot be performed.

>    at System.Diagnostics.NtProcessManager.GetProcessInfos(PerformanceCounterLib library)

>    at System.Diagnostics.NtProcessManager.GetProcessInfos(String machineName, Boolean isRemoteMachine)

>    at System.Diagnostics.ProcessManager.GetProcessInfos(String machineName)

>    at System.Diagnostics.Process.GetProcessesByName(String processName, String machineName)

>    at System.Diagnostics.Process.GetProcessesByName(String processName)

>    at OfficeSolutions.Results.Results_Load(Object sender, EventArgs e)

>    at System.Windows.Forms.Form.OnLoad(EventArgs e)

>    at System.Windows.Forms.Form.OnCreateControl()

>    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

>    at System.Windows.Forms.Control.CreateControl()

>    at System.Windows.Forms.Control.WmShowWindow(Message& m)

>    at System.Windows.Forms.Control.WndProc(Message& m)

>    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

>    at System.Windows.Forms.ContainerControl.WndProc(Message& m)

>    at System.Windows.Forms.Form.WmShowWindow(Message& m)

>    at System.Windows.Forms.Form.WndProc(Message& m)

>    at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

>    at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

>    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32

> msg, IntPtr wparam, IntPtr lparam)

shoud it work on above configuration??

Please help us how we can resolve above Error? How we can Enable the
Process performance counter?
Amit Bahree - 25 May 2005 14:48 GMT
Hi,
It could be because the perf. counter might be disabled. Check [1] for
details on how to enable it.

[1] - http://tinyurl.com/cdj66

Hth's,
Amit.

"dreamamit2001@yahoo.com" <dreamamit2001@yahoo.com> wrote in message
news:dreamamit2001@yahoo.com:

> Hi,
>
[quoted text clipped - 53 lines]
> Please help us how we can resolve above Error? How we can Enable the
> Process performance counter?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.