RE: performancecounter object and remote server
- From: SalamElias <eliassal@xxxxxxxxxxxxx>
- Date: Wed, 28 May 2008 02:50:00 -0700
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
counters
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
remotly that I am missing on the 2nd machine.at
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
the following linealso
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
created on both machines.retrieve
The error message really doesn't give any clue why I am not able to
the 2nd machines counters whereas it it works like a charm with the other
server.
Thanksd in advance
- References:
- RE: performancecounter object and remote server
- From: Steven Cheng [MSFT]
- RE: performancecounter object and remote server
- Prev by Date: RE: performancecounter object and remote server
- Next by Date: Error publishing Web Site
- Previous by thread: RE: performancecounter object and remote server
- Next by thread: Error publishing Web Site
- Index(es):
Relevant Pages
|
Loading