1

unexpected error occurred on a service, An existing connection was forcibly closed be a remote host, attached error message for more details. Any help to resolve the issue would be appreciated.

Thanks,

Kumar enter image description here

Pradeep
  • 2,639
  • 11
  • 36
  • 45

2 Answers2

1

I was recently getting errors like this from a web service when I had not configured it correctly to handle enough data eg: maxBufferPoolSize, maxReceivedMessageSize and the like.

In the httpbinding section of the client side app.config and server web.config.

Also if you are sending a large array the service behaviour and endpoint behavior sections of these files may need:

<dataContractSerializer maxItemsInObjectGraph="array size here"/>
lockstock
  • 2,359
  • 3
  • 23
  • 39