RE: performancecounter object and remote server



To be 100% sure, and in spite of the fact the the user is in admin group, I
added the user in the PERF mon group on the machine where I have problems, I
get exactly the same error

"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? ... running under a local account, has same username/password on both machine). ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.general)
  • Problems with WinSock Proxy Client SBS 4.5
    ... remote via WinSock Proxy it can cause a deadlock with the service manager. ... and you want it to be able to remote, make it dependent on NtLmSsp. ... see Help and Support Center at ...
    (microsoft.public.windows.server.sbs)
  • RE: Dynamic Performance Counter?
    ... I think that you can use multi-instance performance counter. ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... initial response from the community or a Microsoft Support Engineer within ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Xserve a good choice for SMB
    ... CIOs whose IT departments are relying on Windows-based or Linux/Unix-based servers could find cost savings and more manageable operations by switching to Apple's Latest News about Apple Xserve. ... Overall cost of ownership is much less than the alternatives," Andrew E. Filipowski, product manager at SolidSpace, told MacNewsWorld. ... What support do you get if you don't opt for Server Software support, which starts at $5,995 ... The statement below shows that he/she has no knowledge of the remote support tools that have been built into Intel servers for years, allowing full out-of-band remote management, including physically powering off the box. ...
    (comp.sys.mac.advocacy)
  • Re: SBS Turn-Key Operation
    ... My entire business is primarly mobile, with the chance that an SMB needs ... > then use XP Remote Desktop support a lot easier. ... >> my customers are residental w/ a few SMB accounts. ...
    (microsoft.public.windows.server.sbs)

Loading