S
SalamElias
Has anybody worked with performancecounter object to access counters on
remote machine?
I managed to write code that retrieves counters categories froma remote
machine, when I try another remote machine I get
"System.ComponentModel.Win32Exception" error. Error message is
"The network path was not found."
I have checked running services (RPC, Remote registery.....) on both
machines and they are exactly the same.
I am wondering if there is anything to configure to allow access to counters
remotly that I am missing on the 2nd machine.
The scenarion is as follows :
I have a workgroup,not a domain, 1 XP laptop (where I have VS 2005), 2
virtual win2k3 machines. when runing the code, the mentioned error happens at
the following line
Dim AllCountersCategories As PerformanceCounterCategory() =
PerformanceCounterCategory.GetCategories(strServerName)
Regarding network connection, I can map a connection to both servers in
windows explorer. the user and password I use to log tomy XP machine are also
created on both machines.
The error message really doesn't give any clue why I am not able to retrieve
the 2nd machines counters whereas it it works like a charm with the other
server.
Thanksd in advance
remote machine?
I managed to write code that retrieves counters categories froma remote
machine, when I try another remote machine I get
"System.ComponentModel.Win32Exception" error. Error message is
"The network path was not found."
I have checked running services (RPC, Remote registery.....) on both
machines and they are exactly the same.
I am wondering if there is anything to configure to allow access to counters
remotly that I am missing on the 2nd machine.
The scenarion is as follows :
I have a workgroup,not a domain, 1 XP laptop (where I have VS 2005), 2
virtual win2k3 machines. when runing the code, the mentioned error happens at
the following line
Dim AllCountersCategories As PerformanceCounterCategory() =
PerformanceCounterCategory.GetCategories(strServerName)
Regarding network connection, I can map a connection to both servers in
windows explorer. the user and password I use to log tomy XP machine are also
created on both machines.
The error message really doesn't give any clue why I am not able to retrieve
the 2nd machines counters whereas it it works like a charm with the other
server.
Thanksd in advance