Author: dan12345678 | Posted on: 8/28/2008 7:32:41 AM | Views : 654

Hi there,

 I have a ASP.NET code that calls a WCF service hosted on a remote server on the LAN. It works well under VS2008 debug. However, when viewed via IIS, the below exception occurs:

An existing connection was forcibly closed by the remote host





[SocketException (0x2746): An existing connection was forcibly closed by the remote host]
System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) +1086344
System.ServiceModel.Channels.SocketConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout) +198

[CommunicationException: 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:00:59.9979998'.]
System.Ser ...

Go to the complete details ...