Exception : The underlying connection was closed: A connection that was expected to be kept alive was closed by the server

Exception details:

System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. 

ServiceDebugBehavior has a IncludeExceptionDetailInFaults property transfer can be used to open the exception details to the client.

<serviceDebug includeExceptionDetailInFaults="true" />

If we need to receive the FaultException info, so we can set up the includeExceptionDetailInFaults property to 'true'. Or else set up to 'false'.

原文地址:https://www.cnblogs.com/vincentDr/p/2938695.html