Windows Server 2003
1822011 Members
4207 Online
109639 Solutions
New Discussion юеВ

The RPC server is unavailable.

 
pyari
New Member

The RPC server is unavailable.

I have configured RPC with range of ports.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\Internet
Port 5000-6000
PortsInternetAvailable Y
UseInternetPorts Y

But i am getting RPC Server Unavaliable exception when i try to connect from client DCOM application.

"System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'System.EnterpriseServices.IRemoteDispatch'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{6619A740-8154-43BE-A186-0319578E02DB}' failed due to the following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)."

What could be the problem? Please help me.

2 REPLIES 2
Kase
Frequent Advisor

Re: The RPC server is unavailable.

KB 908472 (http://support.microsoft.com/kb/908472) details the steps for specifying the RPC port range. You state you are using a registry hack to set this but the article specifies the use of the RPCCfg.exe utility. Try the steps outlined in the the KB on a clean box.
Also, be aware of the consequences of reserving the RPC ports in the manner you have described. This has the potential to break other applications that assign ports in this range. KB 812873 discusses this, too. (http://support.microsoft.com/kb/812873)
pyari
New Member

Re: The RPC server is unavailable.

HI Thanks for the reply. I am using rpccnfg utilty only to configure.

This problem happens when i specify range of ports. If i revert back to normal (that means RPC decides to use port between 1024 and 5000) it is working fine , provided i enabled "Allow Remote Administration Exception" in group pllicy settings. But even with this policy settings, i am getting RPC server unavailable when i configure it to specific port range.

I use port query tool and triePortQry.exe -n server -e 135 and it is returning end points.
Now what could be the problem.IS there any other firewall or group policy settings to be done?