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?