You must Sign In to post a response.
  • Category: WCF

    ReliableSession enabled=“true” in Service or client site?

    I have created service which uses nettcpip binding.I want check session id of client and server.According to my knowledge by default reliable sessions are not enabled.That's why I am getting different value.I want to enable reliable sessions so I can get same session id for client and server.In which config file I have to do that setting, service or client? I tried on server side and unable to set it on client side.I am getting different sessionid.Even I tried Wshttpbinding.In Wshttpbinding,bedefault reliablesession are enable.Still getting different id.Can anybody explain me why?
    <bindings>
    <netTcpBinding>
    <binding name="netTCP" receiveTimeout="00:00:10">
    <reliableSession enabled="true"/>
    </binding>
    </netTcpBinding>
    </bindings>
  • #763802
    Hai Pinky,
    Are you doing the synchronous call or asynchronous call. Reliable messaging will work only for synchronous call so you need to make sure that the service call should be synchronous in this case.
    Please find below link for more details:

    https://msdn.microsoft.com/en-us/library/ms751509(v=vs.110).aspx

    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com


  • Sign In to post your comments