Wednesday, December 10, 2008

Transporting Large Ado.Net Entity in WCF Error




This could be a reference other post who encounter the same problem as mine.
I have a simple WCF Server/Client Scenario; with Operation Contract
that returns ado.net entity (Objects.DataClasses.EntityObject)



Public Class GenericService
Implements IGenericService


Public Function RetrieveData() As Object Implements
Dim _Context As New CustomerEntities
Dim myData = From OneRecord In _Context.Customers Select OneRecord
Where OneRecord.CustomerId = "AAA"
Return myData
End Function

End Class




However, in the return process.. I got this Error



The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:01:00'.

Some other posting has same error but different solution
In my part, it seems large amount of message was passed through the channel.?
Hope anyone seeing this.