So, I have two instances of a software communicating over a network by serializing and deserializing objects. Unfortunately, every now and then, on deserialization, I get a decoderfallbackexception and I have no idea why or how to fix it.
Here's a simplified version of the client. The server is very similar.
public class Client
public Client(string host,
tcpClient = new TcpClient(host, port);
netStream = tcpClient.GetStream();
formatter = new BinaryFormatter();
thread = new Thread(Run);
public void Send(Message msg)
View Complete Post