troubleshooting Question

TCP Client Side Exception

Avatar of basil365
basil365Flag for Ireland asked on
C#TCP/IP
4 Comments1 Solution993 ViewsLast Modified:
Hi guys,

We have a Windows Service hosting a TCP server which sends updates out to clients every few minutes.

The vast majority of the time there are no issues on either side. However, recently every so often we've started seeing the following exceptions:

SerializationException: The input stream is not a valid binary format. The starting contents (in bytes) are: ...

SocketException (0x80004005): An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full

I am using Message Framing to send the size of the data, which I thought would prevent the first exception from happening.

I've no idea about the second exception. Appears to be completely random. It doesn't affect the server, only the client. After it appears the client that received the error stops receiving messages.

Any suggestions would be much appreciated.

Thanks
ASKER CERTIFIED SOLUTION
Aaron Jabamani
Technical Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros