Problem with Diagnostics.Process.GetProcess­es(String machineName)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • XxLicherxX

    #1

    Problem with Diagnostics.Process.GetProcess­es(String machineName)

    Hello,

    I tried posting this in a different VB.net newsgroup, but never got a
    response. Please let me know if there is a better group to post this
    in. Thanks.

    For some reason I cannot look at the processes running on one machine
    on the network. I always get the following error:

    System.InvalidO perationExcepti on: Couldn't get process information from

    remote machine. ---> System.Componen tModel.Win32Exc eption: The network
    path was not found
    at System.Diagnost ics.Performance Monitor.Init()
    at System.Diagnost ics.Performance Monitor..ctor(S tring machineName)
    at
    System.Diagnost ics.Performance CounterLib.GetP erformanceData( String
    item)
    at System.Diagnost ics.Performance CounterLib.get_ CategoryTable()
    at
    System.Diagnost ics.Performance CounterLib.GetP erformanceData( String[]
    categories, Int32[] categoryIndexes )
    at
    System.Diagnost ics.NtProcessMa nager.GetProces sInfos(Performa nceCounterLib

    library)
    --- End of inner exception stack trace ---
    at
    System.Diagnost ics.NtProcessMa nager.GetProces sInfos(Performa nceCounterLib

    library)
    at System.Diagnost ics.NtProcessMa nager.GetProces sInfos(String
    machineName, Boolean isRemoteMachine )
    at System.Diagnost ics.ProcessMana ger.GetProcessI nfos(String
    machineName)
    at System.Diagnost ics.Process.Get Processes(Strin g machineName)

    I don't understand how it can be telling me that the "The network path
    was not found", because I can ping the machine, Map to it, Remote to it
    etc.

    Does anyone have any ideas as to what could be causing this machine to
    be invisible to this function?

    Thanks

  • Joseph Bittman MCSD DPM MVP

    #2
    Re: Problem with Diagnostics.Pro cess.GetProcess ­es(String machineName)

    October 14, 2005

    Could you please post the server name string which generated the error
    that you passed to the function? Thanks!

    --
    Joseph Bittman
    Microsoft Certified Solution Developer
    Microsoft Most Valuable Professional -- DPM

    Web Site: http://71.39.42.23/
    Static IP


    "XxLicherxX " <goldhors64@aol .com> wrote in message
    news:1129314837 .035159.243830@ z14g2000cwz.goo glegroups.com.. .[color=blue]
    > Hello,
    >
    > I tried posting this in a different VB.net newsgroup, but never got a
    > response. Please let me know if there is a better group to post this
    > in. Thanks.
    >
    > For some reason I cannot look at the processes running on one machine
    > on the network. I always get the following error:
    >
    > System.InvalidO perationExcepti on: Couldn't get process information from
    >
    > remote machine. ---> System.Componen tModel.Win32Exc eption: The network
    > path was not found
    > at System.Diagnost ics.Performance Monitor.Init()
    > at System.Diagnost ics.Performance Monitor..ctor(S tring machineName)
    > at
    > System.Diagnost ics.Performance CounterLib.GetP erformanceData( String
    > item)
    > at System.Diagnost ics.Performance CounterLib.get_ CategoryTable()
    > at
    > System.Diagnost ics.Performance CounterLib.GetP erformanceData( String[]
    > categories, Int32[] categoryIndexes )
    > at
    > System.Diagnost ics.NtProcessMa nager.GetProces sInfos(Performa nceCounterLib
    >
    > library)
    > --- End of inner exception stack trace ---
    > at
    > System.Diagnost ics.NtProcessMa nager.GetProces sInfos(Performa nceCounterLib
    >
    > library)
    > at System.Diagnost ics.NtProcessMa nager.GetProces sInfos(String
    > machineName, Boolean isRemoteMachine )
    > at System.Diagnost ics.ProcessMana ger.GetProcessI nfos(String
    > machineName)
    > at System.Diagnost ics.Process.Get Processes(Strin g machineName)
    >
    > I don't understand how it can be telling me that the "The network path
    > was not found", because I can ping the machine, Map to it, Remote to it
    > etc.
    >
    > Does anyone have any ideas as to what could be causing this machine to
    > be invisible to this function?
    >
    > Thanks
    >[/color]


    Comment

    • XxLicherxX

      #3
      Re: Problem with Diagnostics.Pro cess.GetProcess ­es(String machineName)

      Hi Joseph,

      Thank you for your response. I am not sure exactly what you mean by
      servername... do you mean the machine name that I was using?

      The string for the machine name is simply an S followed by some numbers
      in the format of "sXXXX".

      I am not directly passing the string as that, I have a loop that
      assigns the a variable the machine name for each computer on the
      network. That variable is ultimately what gets passed.

      Dave

      Comment

      Working...