Exception : The underlying connection was closed: A connection that was expected to be kept alive was closed by the server
2013-03-01 14:41
681 查看
Exception details:
ServiceDebugBehavior has a IncludeExceptionDetailInFaults property transfer can be used to open the exception details to the client.
If we need to receive the FaultException info, so we can set up the includeExceptionDetailInFaults property to 'true'. Or else set up to 'false'.
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'.
相关文章推荐
- 解决"The underlying connection was closed: A connection that was expected to be kept alive was closed"
- FtpWebRequest UploadFile返回"The underlying connection was closed: The server committed a protocol violation."解决方法
- the underlying connection was closed:the server committed a protocol violation
- System.ServiceModel.CommunicationException:The underlying connection was closed: The connection was closed unexpectedly
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
- Silverlight + WCF + EF4 调用出错,Server 端的Exception:The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.
- 【错误】:Could not open JDBC Connection for transaction; nested exception is: Communications link failure;The last packet sent successfully to the server was 1 milliseconds ago
- [WebException: The underlying connection was closed: The message length limit was exceeded.]解决方法
- Application Error - The connection to the server was unsuccessful.
- [Android_Bug]处理PhoneGap Application Error: "The connection to the server was unsuccessful.(file:///android_asset/www/index.html)"的错误
- Firefox: Connection Interrupted | The connection to the server was reset while the page was loading
- iOS9 getting error “an ssl error has occurred and a secure connection to the server cannot be made”
- Android App启动错误的问题(connection to the server was unsuccessful)
- The underlying connection was closed错误
- The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure
- Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unex
- An SSL error has occurred and a secure connection to the server cannot be made.
- .Net Remoting 排错笔记:An existing connection was forcibly closed by the remote host
- svn报错:could not read response body connection was closed by server
- Host 'xxx.xx.xx-xx.xx.com' is not allowed to connect to this MySQL serverConnection closed by foreig