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'.

posted @ 2013-03-01 14:41  Vincent.Dr  阅读(1171)  评论(0编辑  收藏  举报