PC Review


Reply
Thread Tools Rate Thread

A couple of .NET API's don't work on XPE-SP1

 
 
Jeff Arnett
Guest
Posts: n/a
 
      21st Aug 2003
When using the .NET GetProcesses() or GetProcessByName()
API on XPE-SP1 the following error occurs (see below).

Anyone know how to fix "Process performance counter is
disabled" problem. We have all software compnents in our
image so I don't think it's a mere dependency issue.

-jeff

>
>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)
>
>


 
Reply With Quote
 
 
 
 
Jeff Arnett
Guest
Posts: n/a
 
      25th Aug 2003
Lynda,

It's not clear what the registry change actually is.

Your message implies adding a registry key in
the ...\Performance tree of DWORD value w/ the name
"Disable ..".

It is not clear what the DWORD value should be, so I
tried 0 and 1, but nothing seems to help; same error??

-jeff

>-----Original Message-----
>Jeff,
>
>Try the following change to the registry:
>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Perf

Proc\Performance:
>DWORD value "Disable Performance Counters"
>
>This is an issue that is known by the netfx team and

they are addressing it.
>--
>Hope this helps,
>
>Lynda
>
>"This posting is provided "AS IS" with no warranties,

and confers no rights"
>"Jeff Arnett" <(E-Mail Removed)> wrote in

message
>news:0b0401c3681d$b10745d0$(E-Mail Removed)...
>> When using the .NET GetProcesses() or GetProcessByName

()
>> API on XPE-SP1 the following error occurs (see below).
>>
>> Anyone know how to fix "Process performance counter is
>> disabled" problem. We have all software compnents in

our
>> image so I don't think it's a mere dependency issue.
>>
>> -jeff
>>
>> >
>> >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)
>> >
>> >

>>

>
>
>.
>

 
Reply With Quote
 
Jeff Arnett
Guest
Posts: n/a
 
      8th Sep 2003
Any update here Lynda?

-jeff

>-----Original Message-----
>Jeff,
>
>Sorry for the confusion. You are correct in your

interpretation of my
>misleading post. That said, we are investigating the

issue and I will post
>again as soon as I have an update.
>-
>Thanks,
>
>Lynda
>
>"This posting is provided "AS IS" with no warranties,

and confers no rights"
>"Jeff Arnett" <(E-Mail Removed)> wrote in

message
>news:049401c36b49$9d0d1210$(E-Mail Removed)...
>> Lynda,
>>
>> It's not clear what the registry change actually is.
>>
>> Your message implies adding a registry key in
>> the ...\Performance tree of DWORD value w/ the name
>> "Disable ..".
>>
>> It is not clear what the DWORD value should be, so I
>> tried 0 and 1, but nothing seems to help; same error??
>>
>> -jeff
>>
>> >-----Original Message-----
>> >Jeff,
>> >
>> >Try the following change to the registry:

>>

>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Perf
>> Proc\Performance:
>> >DWORD value "Disable Performance Counters"
>> >
>> >This is an issue that is known by the netfx team and

>> they are addressing it.
>> >--
>> >Hope this helps,
>> >
>> >Lynda
>> >
>> >"This posting is provided "AS IS" with no warranties,

>> and confers no rights"
>> >"Jeff Arnett" <(E-Mail Removed)> wrote in

>> message
>> >news:0b0401c3681d$b10745d0$(E-Mail Removed)...
>> >> When using the .NET GetProcesses() or

GetProcessByName
>> ()
>> >> API on XPE-SP1 the following error occurs (see

below).
>> >>
>> >> Anyone know how to fix "Process performance counter

is
>> >> disabled" problem. We have all software compnents in

>> our
>> >> image so I don't think it's a mere dependency issue.
>> >>
>> >> -jeff
>> >>
>> >> >
>> >> >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)
>> >> >
>> >> >
>> >>
>> >
>> >
>> >.
>> >

>
>
>.
>

 
Reply With Quote
 
Lynda Allen [MS]
Guest
Posts: n/a
 
      9th Sep 2003
Jeff,

Sorry to leave you hanging, but you have not been forgotten. I am working
with the .NET team to investigate why the workaround did not work. I hope to
have an answer for you in a few days.
--
Thanks,

Lynda

"This posting is provided "AS IS" with no warranties, and confers no rights"

"Jeff Arnett" <(E-Mail Removed)> wrote in message
news:3fc201c37653$2ffc68a0$(E-Mail Removed)...
> Any update here Lynda?
>
> -jeff
>
> >-----Original Message-----
> >Jeff,
> >
> >Sorry for the confusion. You are correct in your

> interpretation of my
> >misleading post. That said, we are investigating the

> issue and I will post
> >again as soon as I have an update.
> >-
> >Thanks,
> >
> >Lynda
> >
> >"This posting is provided "AS IS" with no warranties,

> and confers no rights"
> >"Jeff Arnett" <(E-Mail Removed)> wrote in

> message
> >news:049401c36b49$9d0d1210$(E-Mail Removed)...
> >> Lynda,
> >>
> >> It's not clear what the registry change actually is.
> >>
> >> Your message implies adding a registry key in
> >> the ...\Performance tree of DWORD value w/ the name
> >> "Disable ..".
> >>
> >> It is not clear what the DWORD value should be, so I
> >> tried 0 and 1, but nothing seems to help; same error??
> >>
> >> -jeff
> >>
> >> >-----Original Message-----
> >> >Jeff,
> >> >
> >> >Try the following change to the registry:
> >>

> >HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Perf
> >> Proc\Performance:
> >> >DWORD value "Disable Performance Counters"
> >> >
> >> >This is an issue that is known by the netfx team and
> >> they are addressing it.
> >> >--
> >> >Hope this helps,
> >> >
> >> >Lynda
> >> >
> >> >"This posting is provided "AS IS" with no warranties,
> >> and confers no rights"
> >> >"Jeff Arnett" <(E-Mail Removed)> wrote in
> >> message
> >> >news:0b0401c3681d$b10745d0$(E-Mail Removed)...
> >> >> When using the .NET GetProcesses() or

> GetProcessByName
> >> ()
> >> >> API on XPE-SP1 the following error occurs (see

> below).
> >> >>
> >> >> Anyone know how to fix "Process performance counter

> is
> >> >> disabled" problem. We have all software compnents in
> >> our
> >> >> image so I don't think it's a mere dependency issue.
> >> >>
> >> >> -jeff
> >> >>
> >> >> >
> >> >> >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)
> >> >> >
> >> >> >
> >> >>
> >> >
> >> >
> >> >.
> >> >

> >
> >
> >.
> >



 
Reply With Quote
 
Lynda Allen [MS]
Guest
Posts: n/a
 
      17th Sep 2003
Jeff,

I still don't have a timeline on this fix. I have opened a bug on it and
have been working with the .NET team. I will post again when I have some
further feedback. Sorry for the delay.
--
Lynda

"This posting is provided "AS IS" with no warranties, and confers no rights"
"Jeff Arnett" <(E-Mail Removed)> wrote in message
news:3fc201c37653$2ffc68a0$(E-Mail Removed)...
> Any update here Lynda?
>
> -jeff
>
> >-----Original Message-----
> >Jeff,
> >
> >Sorry for the confusion. You are correct in your

> interpretation of my
> >misleading post. That said, we are investigating the

> issue and I will post
> >again as soon as I have an update.
> >-
> >Thanks,
> >
> >Lynda
> >
> >"This posting is provided "AS IS" with no warranties,

> and confers no rights"
> >"Jeff Arnett" <(E-Mail Removed)> wrote in

> message
> >news:049401c36b49$9d0d1210$(E-Mail Removed)...
> >> Lynda,
> >>
> >> It's not clear what the registry change actually is.
> >>
> >> Your message implies adding a registry key in
> >> the ...\Performance tree of DWORD value w/ the name
> >> "Disable ..".
> >>
> >> It is not clear what the DWORD value should be, so I
> >> tried 0 and 1, but nothing seems to help; same error??
> >>
> >> -jeff
> >>
> >> >-----Original Message-----
> >> >Jeff,
> >> >
> >> >Try the following change to the registry:
> >>

> >HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Perf
> >> Proc\Performance:
> >> >DWORD value "Disable Performance Counters"
> >> >
> >> >This is an issue that is known by the netfx team and
> >> they are addressing it.
> >> >--
> >> >Hope this helps,
> >> >
> >> >Lynda
> >> >
> >> >"This posting is provided "AS IS" with no warranties,
> >> and confers no rights"
> >> >"Jeff Arnett" <(E-Mail Removed)> wrote in
> >> message
> >> >news:0b0401c3681d$b10745d0$(E-Mail Removed)...
> >> >> When using the .NET GetProcesses() or

> GetProcessByName
> >> ()
> >> >> API on XPE-SP1 the following error occurs (see

> below).
> >> >>
> >> >> Anyone know how to fix "Process performance counter

> is
> >> >> disabled" problem. We have all software compnents in
> >> our
> >> >> image so I don't think it's a mere dependency issue.
> >> >>
> >> >> -jeff
> >> >>
> >> >> >
> >> >> >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)
> >> >> >
> >> >> >
> >> >>
> >> >
> >> >
> >> >.
> >> >

> >
> >
> >.
> >



 
Reply With Quote
 
Jeff Arnett eMVP
Guest
Posts: n/a
 
      3rd Oct 2003
Hang in there Lynda.

Just let me know when this is fixed. I'm hoping the fix
will be part of the imminent .NET 1.1 SLD.

-jeff

>-----Original Message-----
>Jeff,
>
>I still don't have a timeline on this fix. I have opened

a bug on it and
>have been working with the .NET team. I will post again

when I have some
>further feedback. Sorry for the delay.
>--
>Lynda
>
>"This posting is provided "AS IS" with no warranties,

and confers no rights"
>"Jeff Arnett" <(E-Mail Removed)> wrote in

message
>news:3fc201c37653$2ffc68a0$(E-Mail Removed)...
>> Any update here Lynda?
>>
>> -jeff
>>
>> >-----Original Message-----
>> >Jeff,
>> >
>> >Sorry for the confusion. You are correct in your

>> interpretation of my
>> >misleading post. That said, we are investigating the

>> issue and I will post
>> >again as soon as I have an update.
>> >-
>> >Thanks,
>> >
>> >Lynda
>> >
>> >"This posting is provided "AS IS" with no warranties,

>> and confers no rights"
>> >"Jeff Arnett" <(E-Mail Removed)> wrote in

>> message
>> >news:049401c36b49$9d0d1210$(E-Mail Removed)...
>> >> Lynda,
>> >>
>> >> It's not clear what the registry change actually is.
>> >>
>> >> Your message implies adding a registry key in
>> >> the ...\Performance tree of DWORD value w/ the name
>> >> "Disable ..".
>> >>
>> >> It is not clear what the DWORD value should be, so I
>> >> tried 0 and 1, but nothing seems to help; same

error??
>> >>
>> >> -jeff
>> >>
>> >> >-----Original Message-----
>> >> >Jeff,
>> >> >
>> >> >Try the following change to the registry:
>> >>

>>

>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Perf
>> >> Proc\Performance:
>> >> >DWORD value "Disable Performance Counters"
>> >> >
>> >> >This is an issue that is known by the netfx team

and
>> >> they are addressing it.
>> >> >--
>> >> >Hope this helps,
>> >> >
>> >> >Lynda
>> >> >
>> >> >"This posting is provided "AS IS" with no

warranties,
>> >> and confers no rights"
>> >> >"Jeff Arnett" <(E-Mail Removed)> wrote

in
>> >> message
>> >> >news:0b0401c3681d$b10745d0$(E-Mail Removed)...
>> >> >> When using the .NET GetProcesses() or

>> GetProcessByName
>> >> ()
>> >> >> API on XPE-SP1 the following error occurs (see

>> below).
>> >> >>
>> >> >> Anyone know how to fix "Process performance

counter
>> is
>> >> >> disabled" problem. We have all software

compnents in
>> >> our
>> >> >> image so I don't think it's a mere dependency

issue.
>> >> >>
>> >> >> -jeff
>> >> >>
>> >> >> >
>> >> >> >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)
>> >> >> >
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> >.
>> >> >
>> >
>> >
>> >.
>> >

>
>
>.
>

 
Reply With Quote
 
Lynda Allen [MS]
Guest
Posts: n/a
 
      8th Oct 2003
Jeff- it is definitely something they are aware of as they build .NET 1.1.

Thanks for your patience.

Lynda

"This posting is provided "AS IS" with no warranties, and confers no rights"
"Jeff Arnett eMVP" <(E-Mail Removed)> wrote in message
news:119301c389fb$df6f3630$(E-Mail Removed)...
> Hang in there Lynda.
>
> Just let me know when this is fixed. I'm hoping the fix
> will be part of the imminent .NET 1.1 SLD.
>
> -jeff
>
> >-----Original Message-----
> >Jeff,
> >
> >I still don't have a timeline on this fix. I have opened

> a bug on it and
> >have been working with the .NET team. I will post again

> when I have some
> >further feedback. Sorry for the delay.
> >--
> >Lynda
> >
> >"This posting is provided "AS IS" with no warranties,

> and confers no rights"
> >"Jeff Arnett" <(E-Mail Removed)> wrote in

> message
> >news:3fc201c37653$2ffc68a0$(E-Mail Removed)...
> >> Any update here Lynda?
> >>
> >> -jeff
> >>
> >> >-----Original Message-----
> >> >Jeff,
> >> >
> >> >Sorry for the confusion. You are correct in your
> >> interpretation of my
> >> >misleading post. That said, we are investigating the
> >> issue and I will post
> >> >again as soon as I have an update.
> >> >-
> >> >Thanks,
> >> >
> >> >Lynda
> >> >
> >> >"This posting is provided "AS IS" with no warranties,
> >> and confers no rights"
> >> >"Jeff Arnett" <(E-Mail Removed)> wrote in
> >> message
> >> >news:049401c36b49$9d0d1210$(E-Mail Removed)...
> >> >> Lynda,
> >> >>
> >> >> It's not clear what the registry change actually is.
> >> >>
> >> >> Your message implies adding a registry key in
> >> >> the ...\Performance tree of DWORD value w/ the name
> >> >> "Disable ..".
> >> >>
> >> >> It is not clear what the DWORD value should be, so I
> >> >> tried 0 and 1, but nothing seems to help; same

> error??
> >> >>
> >> >> -jeff
> >> >>
> >> >> >-----Original Message-----
> >> >> >Jeff,
> >> >> >
> >> >> >Try the following change to the registry:
> >> >>
> >>

> >HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Perf
> >> >> Proc\Performance:
> >> >> >DWORD value "Disable Performance Counters"
> >> >> >
> >> >> >This is an issue that is known by the netfx team

> and
> >> >> they are addressing it.
> >> >> >--
> >> >> >Hope this helps,
> >> >> >
> >> >> >Lynda
> >> >> >
> >> >> >"This posting is provided "AS IS" with no

> warranties,
> >> >> and confers no rights"
> >> >> >"Jeff Arnett" <(E-Mail Removed)> wrote

> in
> >> >> message
> >> >> >news:0b0401c3681d$b10745d0$(E-Mail Removed)...
> >> >> >> When using the .NET GetProcesses() or
> >> GetProcessByName
> >> >> ()
> >> >> >> API on XPE-SP1 the following error occurs (see
> >> below).
> >> >> >>
> >> >> >> Anyone know how to fix "Process performance

> counter
> >> is
> >> >> >> disabled" problem. We have all software

> compnents in
> >> >> our
> >> >> >> image so I don't think it's a mere dependency

> issue.
> >> >> >>
> >> >> >> -jeff
> >> >> >>
> >> >> >> >
> >> >> >> >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)
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >
> >> >> >
> >> >> >.
> >> >> >
> >> >
> >> >
> >> >.
> >> >

> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A couple of how to's... mabyn Microsoft Access 1 3rd Mar 2009 02:50 AM
Filter that has a couple of glitches and fails to work =?Utf-8?B?UGFzdHk=?= Microsoft Excel Programming 1 11th Apr 2007 09:38 AM
Outlook 2007 will only work a couple of hours before shutting down SBC Windows Vista Mail 3 18th Aug 2006 02:03 AM
A Couple of Problems with User Switching and Offline Work =?Utf-8?B?RHJhZ29uZmx5Xzk2MQ==?= Windows XP General 1 22nd Dec 2005 06:00 AM
SP2: a couple exe's do nothing... Kristi Windows XP General 8 12th Aug 2004 06:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:20 PM.