Page 1 of 1

System.Net.Sockets.SocketException

Posted: Mon Mar 22, 2010 1:15 pm
by Kanyungu
How do i solve this error

2:39:44 PM: Exception:System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at ALT.SMS.SmppClient.kbhdt2w9C(IAsyncResult )
2:39:44 PM: SmppClient disconnected




Windows logs show
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: smppclientdemo.exe
Problem Signature 02: 1.1.3733.29857
Problem Signature 03: 4ba77213
Problem Signature 04: mscorlib
Problem Signature 05: 2.0.0.0
Problem Signature 06: 48ead7c2
Problem Signature 07: 116e
Problem Signature 08: 4f
Problem Signature 09: System.InvalidOperationException
OS Version: 6.0.6001.2.1.0.274.10
Locale ID: 1033

Posted: Tue Mar 30, 2010 5:32 pm
by alt
Is this error appears too often?
Usually it is normal situation when SMSC drops connection.

Posted: Wed Mar 31, 2010 8:24 am
by Kanyungu
The occurrence of this error has been reducing gradually from 4 times in a day to once in 2 days now. but i found a workaround.

Whenever a disconnection occurs, I force-restart the SMPP client with default values loaded and force a connection in 3 seconds.

Its works for now!