I\'m making slow and steady progress towards having a duplex communication channel open between a client and a server, using NetTcpBinding. (FYI, you can observe my newbie
Kudos to @Allon Guralnek, who helped me notice what was wrong:
On the server side I had:
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
class WebService : IWebService { ... }
And on the client side I had:
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession, Namespace="http://MyWebService")]
class SiteServer : IWebServiceCallback { ... }
The conflict was between PerCall
and PerSession
. I just changed the server side to PerSession
, and - Houston, we have lift-off!
Now, to get this working with security... watch SO for the next exciting installment in my WCF learning curve! :)
You listed your callback contract as ISiteServiceExternal
but your client implements IWebServiceCallback
. Fix that first and see if you have success.