Message Queue Service SMS & Pager Sending via TAP - System.IO.IOException: Unable to read data from the transport connection

When using TAP to send Pagers & SMS the message fails to send and the below error appears in the logs.

Error

Log event fired from TapClient. logString = 'Exception thrown in GetData. readInt = '-1', error = 'System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
   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)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.IO.StreamReader.ReadBuffer()
   at System.IO.StreamReader.Read()
   at TapSender.TapClient.GetData() in C:\Development\TapSender\TapSender\TapClient.vb:line 195''




Resolution

This is caused as the CallScripter application/service is not able to get a positive response from the Target Device (TAP recipient).
The cause can range from network and firewall issues to the TAP device being down/unresponsive.
In all these cases it is not CallScripter who can resolve this, but the client, their IT or other 3rd party who manages the box.

Note when stopping/restarting the CS service you can find the windows debug tool will run and use high server resources. In this case kill the windows debug process.