473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.InvalidOperationException: Couldn't get process information from

remote machine. ---> System.ComponentModel.Win32Exception: The network
path was not found
at System.Diagnostics.PerformanceMonitor.Init()
at System.Diagnostics.PerformanceMonitor..ctor(String machineName)
at
System.Diagnostics.PerformanceCounterLib.GetPerfor manceData(String
item)
at System.Diagnostics.PerformanceCounterLib.get_Categ oryTable()
at
System.Diagnostics.PerformanceCounterLib.GetPerfor manceData(String[]
categories, Int32[] categoryIndexes)
at
System.Diagnostics.NtProcessManager.GetProcessInfo s(PerformanceCounterLib

library)
--- End of inner exception stack trace ---
at
System.Diagnostics.NtProcessManager.GetProcessInfo s(PerformanceCounterLib

library)
at System.Diagnostics.NtProcessManager.GetProcessInfo s(String
machineName, Boolean isRemoteMachine)
at System.Diagnostics.ProcessManager.GetProcessInfos( String
machineName)
at System.Diagnostics.Process.GetProcesses(String 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 5801
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.googlegr oups.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.InvalidOperationException: Couldn't get process information from

remote machine. ---> System.ComponentModel.Win32Exception: The network
path was not found
at System.Diagnostics.PerformanceMonitor.Init()
at System.Diagnostics.PerformanceMonitor..ctor(String machineName)
at
System.Diagnostics.PerformanceCounterLib.GetPerfor manceData(String
item)
at System.Diagnostics.PerformanceCounterLib.get_Categ oryTable()
at
System.Diagnostics.PerformanceCounterLib.GetPerfor manceData(String[]
categories, Int32[] categoryIndexes)
at
System.Diagnostics.NtProcessManager.GetProcessInfo s(PerformanceCounterLib

library)
--- End of inner exception stack trace ---
at
System.Diagnostics.NtProcessManager.GetProcessInfo s(PerformanceCounterLib

library)
at System.Diagnostics.NtProcessManager.GetProcessInfo s(String
machineName, Boolean isRemoteMachine)
at System.Diagnostics.ProcessManager.GetProcessInfos( String
machineName)
at System.Diagnostics.Process.GetProcesses(String 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
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. ...
7
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...
2
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...
9
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...
10
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...
2
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() ...
1
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...
9
by: jatinvmehta | last post by:
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe"); psi.CreateNoWindow = false; psi.UseShellExecute = false; psi.RedirectStandardInput = true; psi.RedirectStandardOutput = true;
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...

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.