Client-Side CommunicationException while Service works properly

前端 未结 5 1999
长发绾君心
长发绾君心 2021-01-07 23:04

Currently i am facing a problem i do not understand. I have an wcf client that calls a wcf service through several threads at the same time (both on the same machine). Somet

5条回答
  •  孤街浪徒
    2021-01-07 23:14

    I'd suggest to verify 2 points:

    1. Throttling on the server, like

      behavior name="Throttled"
      serviceThrottling
      maxConcurrentCalls="1"
      maxConcurrentSessions="1"
      maxConcurrentInstances="1"

    2. Not closed WCF sessions - do you close all your sessions (client proxy) after used?
      In my case when I enlarged all timeouts to max, I got situation when after X calls, service became "stuck". When I changed timeouts, I was received exception like yours.

    It was several years ago, So i did not remember exactly. Also, I remember I found good article that was described how and why to change Service Instance mode to help this (sessions) issue.

提交回复
热议问题