473,834 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Diagnostics.Pro cess.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

Nov 21 '05 #1
2 5832
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 " <go********@aol .com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
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

Nov 21 '05 #2
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

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
23086
by: Jay | last post by:
I have an HTML form with a textarea. When passing large amount of data in the textarea, the Processing asp pages catch an error message as follows: Error Type: (0x80020009) Exception occurred. The error is generated once the trim or length or replace function is called on the field when long text is passed in the textarea.
7
3784
by: Keith Dewell | last post by:
Greetings! My current job has brought me back to working in C++ which I haven't used since school days. The solution to my problem may be trivial but I have struggled with it for the last two days and would appreciate this group's helpful expertise. My problem may be related to mixing the C and C++ languages together. Namely, I have a struct which I cannot change (as legacy code) similiar to this (I will change the names throughout as...
2
2346
by: yonta via .NET 247 | last post by:
Hi I need to select several nodes (title) on an xml document based on an atrribute(user) and then read from each selected element (title) another attribute(nomequiz). Here's my code so far but it isn't working.. Would really appreciate some help. Got really stuck. I already tried with xmlDocument instead but it didn't work either. If Session("user") <> "" Then
9
1764
by: Víctor | last post by:
Hello, I'm filling a array of System.Diagnostic.Process by using GetProcesses() method. Due to a retard on this method, I do the call using a function and it passing like a delegate to one thread. I've defined the array like private at class level, but when thread terminates, array is void (I've checked that array isn't void before thread delegate terminate). Can somebody help me? I believed that by declaring vars like private in a...
10
2322
by: Edward | last post by:
I've just taken over maintaining a system from a colleague who has left. I find the following line in her code: Dim params(2) As SqlClient.SqlParameter params(0) = New SqlClient.SqlParameter("@UserName", pvstrUsername) params(1) = New SqlClient.SqlParameter("@Password", pvstrPassword) params(2) = New SqlClient.SqlParameter("@MachineName", Environment.MachineName())
2
1246
by: Bernard Bourée | last post by:
I have defined a Class called EntSor (see code ) with a procedure Sub Définit which assign the values of this class. Then I have defined an Arraylist with Dim colEntSor As New ArrayList() The following code assign the values of the last lign to all elements of the collection: EntSor.Définit("PAAE", "bar", 0, True) : colEntSor.Add(EntSor)
1
1770
by: Nacho | last post by:
Hello.. I have one problem with my reusable function to validate date.. I want to use this function to all my web project no validate date, but It's works fine if I have one textbox to validate in the same form, If I have two textbox the return doesn't works correctly.. how can I do this? if (document.Form1.TxtFechaIng.value!=''){
9
2195
by: jatinvmehta | last post by:
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe"); psi.CreateNoWindow = false; psi.UseShellExecute = false; psi.RedirectStandardInput = true; psi.RedirectStandardOutput = true;
1
3148
by: Johannes Bauer | last post by:
Hello group, I've run into a small problem with pgdb which is actually not PostgreSQL specific - I just do not understand the Python syntax at one point. I'm trying to initialize a connection to a PG database. So help(pgdb) says: pgdb.connect(connect_string) -connection connect_string = 'host:database:user:password:opt:tty' All parts are optional. You may also pass host through
0
9799
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9646
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10512
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9332
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7760
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6957
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5627
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3981
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.