I use FastLog.Net to log my events ( including exceptions )
Sometimes the WatsonTCP throws an exception like this ⬇
This exception has been registered by FastLog.Net
{
"DateTime": "2025-02-15 10:51:24",
"Type": "EXCEPTION",
"Id": "0",
"Message":
{
"Id": "-2146232800",
"Message": "Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond..",
"Inner Exception":
{
"Id": "-2147467259",
"Message": "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.",
"Inner Exception": "N/A",
"Source": "N/A",
"StackTrace": "N/A",
"Target Site": "N/A"
},
"Source": "System.Net.Sockets",
"StackTrace": " at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask`1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at WatsonTcp.WatsonMessageBuilder.BuildFromStream(Stream stream, CancellationToken token)
at WatsonTcp.WatsonTcpServer.DataReceiver(ClientMetadata client, CancellationToken token)",
"Target Site": "ThrowException"
},
I use FastLog.Net to log my events ( including exceptions )
Sometimes the WatsonTCP throws an exception like this ⬇
This exception has been registered by FastLog.Net
{
"DateTime": "2025-02-15 10:51:24",
"Type": "EXCEPTION",
"Id": "0",
"Message":
{
"Id": "-2146232800",
"Message": "Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond..",
"Inner Exception":
{
"Id": "-2147467259",
"Message": "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.",
"Inner Exception": "N/A",
"Source": "N/A",
"StackTrace": "N/A",
"Target Site": "N/A"
},
"Source": "System.Net.Sockets",
"StackTrace": " at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Threading.Tasks.ValueTask`1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at WatsonTcp.WatsonMessageBuilder.BuildFromStream(Stream stream, CancellationToken token)
at WatsonTcp.WatsonTcpServer.DataReceiver(ClientMetadata client, CancellationToken token)",
"Target Site": "ThrowException"
},