J
Jochen Kalmbach
Hello,
we have a problem that we have to use dotNET on XPE-SP1. We also want to
monitor some processes. On our XPE image the following error occurs:
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.GetProcesses(String machineName)
at System.Diagnostics.Process.GetProcesses()
at XPE_ProcessProblem.Form1.button1_Click(Object sender, EventArgs e)
I searched in goolge-groups for it and found other posts regarding this
problem; but nowhere I could find a solution for this!
Is there a solution or is MS aware of this problem !?
Here is the small C#.code to reproduce the problem:
private void button1_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process[] pl;
pl = System.Diagnostics.Process.GetProcesses();
foreach(System.Diagnostics.Process p in pl)
this.listBox1.Items.Add(p.ProcessName);
}
--
Greetings
Jochen
Do you need a memory-leak finder ?
http://www.codeproject.com/useritems/leakfinder.asp
we have a problem that we have to use dotNET on XPE-SP1. We also want to
monitor some processes. On our XPE image the following error occurs:
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.GetProcesses(String machineName)
at System.Diagnostics.Process.GetProcesses()
at XPE_ProcessProblem.Form1.button1_Click(Object sender, EventArgs e)
I searched in goolge-groups for it and found other posts regarding this
problem; but nowhere I could find a solution for this!
Is there a solution or is MS aware of this problem !?
Here is the small C#.code to reproduce the problem:
private void button1_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process[] pl;
pl = System.Diagnostics.Process.GetProcesses();
foreach(System.Diagnostics.Process p in pl)
this.listBox1.Items.Add(p.ProcessName);
}
--
Greetings
Jochen
Do you need a memory-leak finder ?
http://www.codeproject.com/useritems/leakfinder.asp