RE: performancecounter object and remote server



Thanks Steven, I read the blog which has interesting information but it
doesn't apply to my context.
Yes, I am running through an account has same username/password on 3 mac
hines and which are all declared in administrators group.
So, I think I should not need to apply instructions mentioned in the blog

"Steven Cheng [MSFT]" wrote:

Hi Salam,

From your description, you're using the .NET performance counter to open
counters on remote machine, however, you got the following error, correct?

"System.ComponentModel.Win32Exception" error. Error message is
"The network path was not found."

based on my research, so far for remote performance counter accessing, the
following blog entry has mentioned some information:

#How to Read Performance Counters Without Administrator Privileges [Ryan
Byington]
http://blogs.msdn.com/bclteam/archive/2006/09/08/746900.aspx

Also, as you mentioned the non-domain environment, I think it is also
related to the problem. I've performenced tests on my side, in a domain
environment, I can get the code you provided run correctly(event if I try
running under a local account, has same username/password on both machine).
Are you running through an account has same username/password on both
machine and is it an administrator account?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: =?Utf-8?B?U2FsYW1FbGlhcw==?= <eliassal@xxxxxxxxxxxxx>
Subject: performancecounter object and remote server
Date: Tue, 27 May 2008 01:24:00 -0700


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




.



Relevant Pages

  • RE: performancecounter object and remote server
    ... you're using the .NET performance counter to open ... counters on remote machine, however, you got the following error, correct? ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ...
    (microsoft.public.dotnet.general)
  • RE: cannot add user rights assignments on windows server 2003 for user that exists in same workgroup
    ... Have you setup a local account with the same name and password on remote ... Regarding remote debugging, the local debugger's debugging request to the ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.debugging)
  • Re: "ASP.NET Machine Account" problem
    ... Since your ASP.NET application's work process account is "MACHINE\ASPNET", ... remote resource, I think you can consider configure your ASP.NET ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: "ASP.NET Machine Account" problem
    ... Since your ASP.NET application's work process account is "MACHINE\ASPNET", ... remote resource, I think you can consider configure your ASP.NET ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Remote Debugging Issue
    ... As for the remote debugging ASP.NET issue, ... user account Administrative permission on the remote machine. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)

Loading