Re: Untrue (?): "The RPC server is unavailable."
- From: "Gabriel GHIZILA [MSFT]" <gghizila@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 11 Sep 2005 13:43:17 -0700
I am not sure why you need to convert the IP address to a hostname. You say
you get access denied right away using the ip address. It looks to me like
this is the problem you have to solve actually. The RPC server is
unavailable probably comes from the fact the name was not resolved by DNS
(you hsould check that) or is not resolved later on correctly. You should be
able to ping that name you get in your code but would focus first on making
it work w/ the ip address. Try to use wbemtest to connect to the namespace
as a first step.
HTH
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
"Serg" <Serg@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:12AE6746-6342-4ED7-8688-624D5455AE15@xxxxxxxxxxxxxxxx
> 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.
>
.
- References:
- Untrue (?): “The RPC server is unavailable.”
- From: Serg
- Untrue (?): “The RPC server is unavailable.”
- Prev by Date: Re: mapping GUI - WMI
- Next by Date: Re: Deleting an instance from with in a provider.
- Previous by thread: Untrue (?): “The RPC server is unavailable.”
- Next by thread: Number of CPU Revisited
- Index(es):
Relevant Pages
|
Loading