J
Joe K
I just recently ported an application from .Net 1.1 to .Net 2.0 and am
getting the below exception. Basically it looks like
Process.TotalProcessTime and Process.StartTime now throw an exception when I
try to retrieve these properties from a remote system (in this case remote
system in Win2K). Does anyone understand wy? I looked at the underlying
..Net code, and while there are some changes between .Net 1.1 and 2.0,
Microsoft is continuing to use the Process performance counter object for
remotely retrieving this information. This object certainly has counters
that provide this information, so I am at a loss as to why it would fail.
Any help would be appreciated. Thanks in advance.
System.NotSupportedException : Feature is not supported for remote machines.
[Flags=1]
RemoteStackTrace:
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean
throwIfExited)
at System.Diagnostics.Process.GetProcessTimes()
at System.Diagnostics.Process.get_TotalProcessorTime()
at MyProduct.RequestHandlers.ProcessInfoHandler.execute() in
C:\sandbox\MyProduct\Proces.cs:line 86
getting the below exception. Basically it looks like
Process.TotalProcessTime and Process.StartTime now throw an exception when I
try to retrieve these properties from a remote system (in this case remote
system in Win2K). Does anyone understand wy? I looked at the underlying
..Net code, and while there are some changes between .Net 1.1 and 2.0,
Microsoft is continuing to use the Process performance counter object for
remotely retrieving this information. This object certainly has counters
that provide this information, so I am at a loss as to why it would fail.
Any help would be appreciated. Thanks in advance.
System.NotSupportedException : Feature is not supported for remote machines.
[Flags=1]
RemoteStackTrace:
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean
throwIfExited)
at System.Diagnostics.Process.GetProcessTimes()
at System.Diagnostics.Process.get_TotalProcessorTime()
at MyProduct.RequestHandlers.ProcessInfoHandler.execute() in
C:\sandbox\MyProduct\Proces.cs:line 86