Hi~
I have a WCF server(BasicHttpBinding) And client refer server as a webreference.
Normally it work well.
But when server respond with large size message,The exception occurs.
exception is
Message = "The underlying connection was closed: An unexpected error occurred on a receive."
Response = null
Source = "System.Web.Services"
Status = System.Net.WebExceptionStatus.ReceiveFailure
StackTrace:
at: System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at: System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at: System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at: Edison.Controller.LogArchive.QueryLogService.QueryLog(SearchCondition searchCondition, Log[]& logs, Int32& toalCount, Boolean& toalCountSpecified)
at: Edison.Controller.LogController.GetLogList(String userSessionKey, LogSearchConditionDto condition, Log[]& logs, Int32& totalCount)
Target Site = "System.Net.WebResponse GetWebResponse(System.Net.WebRequest)"
InnerException
System.IO.IOException : "sending connection An existing connection was forcibly closed by the remote host"
StackTrace :
at: System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at: System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at: System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
InnserException
System.Net.Sockets.SocketException : "An existing connection was forcibly closed by the remote host"
NativeErrorCode : 10054
SocketErrorCode : System.Net.Sockets.SocketError.ConnectionReset
StackTrace :
at: System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at: System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
Please help me.