Untrue (?): “The RPC server is unavailable.”
- From: "Serg" <Serg@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 2 Sep 2005 07:09:02 -0700
I'm developing a kind of Intranet"Remote Computer Monitor" C# application for
1. Windows Logs monitoring,
2. Processes monitoring,
3. Performance monitoring.
Environment:
- Application (local) PC - XP, SP2, VS2003.
- Remote PC - Windows Server 2003.
- IIS 5.1 on local PC (IISADMIN service is running)
- Administrator account on local PC and Administrator account credentials
for Remote PC are
used.
- All Windows Services related to Remoting on both local and remote PC are
Started
- "System.Management" namespace in used.
- tcp port 135 is open (I even disabled Windows Firewall for a while – not
very dangerous in
Intranet)
-
- All Settings for Visul Studio Remote Debugging are implemented.
=--------
“Windows Logs monitoring” and “Processes monitoring” are OK
(Impersonalization works), but
“Performance monitoring” part returns an error
"System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is
unavailable."
System Event Log shows:
“DCOM was unable to communicate with the computer “Computer Name” using any
of the configured protocols.”
Previous System event (on Remove machite too!):
“The WMI Performance Adapter service entered the running state.”
----- -----
Source code for the critical part:
string computerName = Dns.Resolve(computerIP).HostName; // computerIP
direct use causes “Access Denied” message
ManagementPath path = new
ManagementPath(String.Format("\\\\{0}\\root\\cimv2",computerName));
// Or like this => "\\\\" + computerName + "\\root\\cimv2
ConnectionOptions options = new ConnectionOptions();
options.Authentication = AuthenticationLevel.Packet;
options.Username = userName; //checked domain\user format too
options.Password = password;
_searchScope = new ManagementScope(path, options);
--- ---
Then I checked whether RPC server is really unavailable.
I added myself (my local PC user name and pwd) to remote PC as a member of
Administrators Group, then opened Windows Performance -> System Monitor on my
local PC and connected to a remote one.
Everything is excellent - I see all the Graphs, I can add any Counter I
need. Works fine with or without Firewall activatede.
So RPC Server IS working, I guess. What the problem is????
Please Help!!!!!
=-------
P.S.
I found, studied and applied (without results):
http://support.microsoft.com/default.aspx?scid=kb;en-us;131469
http://support.microsoft.com/default.aspx?scid=kb;en-us;224370
http://support.microsoft.com/default.aspx?scid=kb;en-us;224371
http://support.microsoft.com/default.aspx?scid=kb;en-us;242361
http://support.microsoft.com/default.aspx?scid=kb;en-us;258518
http://support.microsoft.com/default.aspx?scid=kb;en-us;293092
http://support.microsoft.com/default.aspx?scid=kb;en-us;297002
http://support.microsoft.com/default.aspx?scid=kb;en-us;302323
http://support.microsoft.com/default.aspx?scid=kb;en-us;323790
http://support.microsoft.com/default.aspx?scid=kb;en-us;329705
http://support.microsoft.com/default.aspx?scid=kb;en-us;884564
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312960
http://support.microsoft.com/?id=833977#XSLTH4185121124120121120120
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvsdev05/html/vs05e1.asp
http://www.microsoft.com/resources/documentation/Windows/2000/server/reskit/en-
us/Default.asp?url=/resources/documentation/windows/2000/server/reskit/en-us/distrib/dsef_tbs_updw.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/vctskInstallingRemoteDebugMonitor.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/xpsp2remotedebug.asp
http://www.eggheadcafe.com/ng/microsoft.public.win32.programmer.wmi/Jul2005/post23444903.asp
http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework/topic12424.aspx
http://www.gotdotnet.com/team/xmlentsvcs/esfaq.aspx
Please don’t advise me to use links above.
.
- Follow-Ups:
- Re: Untrue (?): "The RPC server is unavailable."
- From: Gabriel GHIZILA [MSFT]
- Re: Untrue (?): "The RPC server is unavailable."
- Prev by Date: Error backing up WMI repository
- Next by Date: Number of CPU Revisited
- Previous by thread: Error backing up WMI repository
- Next by thread: Re: Untrue (?): "The RPC server is unavailable."
- Index(es):
Relevant Pages
|