Untrue (?): “The RPC server is unavailable.”

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.

.



Relevant Pages

  • RE: Win32: RPC server is unavailable
    ... The RPC server is unavailable" when remote manage the computer. ... can I assume that the remote computer is Windows ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: Untrue (?): "The RPC server is unavailable."
    ... Windows Logs monitoring, ... > - All Windows Services related to Remoting on both local and remote PC are ... > "Performance monitoring" part returns an error ... > "System.Runtime.InteropServices.COMException: The RPC server ...
    (microsoft.public.win32.programmer.wmi)
  • SecurityFocus Microsoft Newsletter #228
    ... RaidenHTTPD Remote File Disclosure Vulnerability ... Microsoft Outlook Web Access Login Form Remote URI Redirecti... ... Microsoft Windows Hyperlink Object Library Buffer Overflow V... ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #212
    ... MICROSOFT VULNERABILITY SUMMARY ... ARJ Software UNARJ Remote Directory Traversal Vulnerability ... Microsoft Windows XP WAV File Handler Denial Of Service Vuln... ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #229
    ... Windows NTFS Alternate Data Streams ... MICROSOFT VULNERABILITY SUMMARY ... VBulletin Forumdisplay.PHP Remote Command Execution Vulnerab... ... AWStats Debug Remote Information Disclosure Vulnerability ...
    (Focus-Microsoft)