RPC_S_INVALID_BINDING in client
From: Shawn Fessenden (shawn#no#_at_testech-ldt.#spam#com)
Date: 02/26/05
- Next message: Bishman: "Re: How to find my IPAddress"
- Previous message: Phil Frisbie, Jr.: "Re: How to find my IPAddress"
- Next in thread: Gianluca Braccini: "Re: RPC_S_INVALID_BINDING in client"
- Reply: Gianluca Braccini: "Re: RPC_S_INVALID_BINDING in client"
- Reply: Shawn Fessenden: "Re: RPC_S_INVALID_BINDING in client"
- Reply: Gianluca Braccini: "Re: RPC_S_INVALID_BINDING in client"
- Reply: Shawn Fessenden: "Re: RPC_S_INVALID_BINDING in client: SOLVED"
- Messages sorted by: [ date ] [ thread ]
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-
- Next message: Bishman: "Re: How to find my IPAddress"
- Previous message: Phil Frisbie, Jr.: "Re: How to find my IPAddress"
- Next in thread: Gianluca Braccini: "Re: RPC_S_INVALID_BINDING in client"
- Reply: Gianluca Braccini: "Re: RPC_S_INVALID_BINDING in client"
- Reply: Shawn Fessenden: "Re: RPC_S_INVALID_BINDING in client"
- Reply: Gianluca Braccini: "Re: RPC_S_INVALID_BINDING in client"
- Reply: Shawn Fessenden: "Re: RPC_S_INVALID_BINDING in client: SOLVED"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|