RPC_S_INVALID_BINDING in client

From: Shawn Fessenden (shawn#no#_at_testech-ldt.#spam#com)
Date: 02/26/05


Date: Sat, 26 Feb 2005 08:23:50 GMT

I've got a problem in an RPC client. Any server method invocation fails with
RPC_S_INVALID_BINDING. Both RpcStringBindingCompose and
RpcBindingFromStringBinding succeed. The protocol is tcp (ncacn_ip_tcp) on
port 1054. I've tried several different protocol sequences with the same
result.

I found a reference on a DEC site that gives a little more info than just
"The binding handle is invalid": RPC Protocol ID in binding handle was
invalid. Well, it looks ok to me in it's string form:

569f2117-297a-4c65-afaf-352ecc0f3b75@ncacn_ip_tcp:\\\\PIII733[1054]

The server shown is the localhost. So can anybody shed some light on just
where I should start looking for problems?

Additional info: environment is Windows 2000 Pro, MSVC++ 6 SP3 using SDK
MIDL & RPC includes. Server must eventually run on everything from Windows
95 to Server 2003. Should I switch to pure VC? Is rpcrt4.lib hassling me
because of differences between MSVC & SDK? SDK libraries are included &
linked first anyway. Server and client are both standard MFC dialog apps.
Server uses:

status = RpcServerRegisterIfEx(ISnapRemote_v1_0_s_ifspec,
  NULL, NULL, RPC_IF_AUTOLISTEN, cMaxCalls, NULL);
status = RpcServerListen(cMinCalls, cMaxCalls, TRUE);

(both succeed)

-- 
-SHAWN-


Relevant Pages

  • Port Assignment- OT in a Small Way
    ... 5:RJE - Remote Job Entry ... 18:MSP - Message Send Protocol ... server, Traitor 21, WebEx, WinCrash, NerTe, ... 22:SSH - SSH Remote Login Protocol, RAT: Shaft ...
    (comp.security.misc)
  • Port Assignment- OT in a Small Way
    ... 5:RJE - Remote Job Entry ... 18:MSP - Message Send Protocol ... server, Traitor 21, WebEx, WinCrash, NerTe, ... 22:SSH - SSH Remote Login Protocol, RAT: Shaft ...
    (comp.security.firewalls)
  • Port Assignment- OT in a Small Way
    ... 5:RJE - Remote Job Entry ... 18:MSP - Message Send Protocol ... server, Traitor 21, WebEx, WinCrash, NerTe, ... 22:SSH - SSH Remote Login Protocol, RAT: Shaft ...
    (alt.computer.security)
  • PORT NUMBER AND SERVICES
    ... 5:RJE - Remote Job Entry ... 18:MSP - Message Send Protocol ... server, Traitor 21, WebEx, WinCrash, NerTe, ... 22:SSH - SSH Remote Login Protocol, RAT: Shaft ...
    (comp.security.firewalls)
  • Re: MAPI vs IMAP4
    ... uses RPC over HTTP.... ... Service Provider Interface -+ ... Server Server Modem Server Server ... That's a protocol question, not a client question. ...
    (microsoft.public.exchange.admin)