title: problem with sending serialized object over tcpclient
body: <p>I am trying to send an object over tcpclient from the server to a client and i get an error . First, here is the pack class :</p>
  
  <pre><code>[Serializable()]
      public class pack
      {
          public int a;
      }
  </code></pre>
  
  <p>here is the server's sending code(it's namespace is WindowsFormsApplication1) :</p>
  
  <pre><code>                pack pachet = new pack();
                  pachet.a = 3;
                  IFormatter bformatter = new BinaryFormatter();
                  NetworkStream ntstream = tcpClient.GetStream();
                  bformatter.Serialize(ntstream, pachet);
  </code></pre>
  
  <p>and the client's 'translation' code(it's namespace is WindowsFormsApplication2) :</p>
  
  <pre><code>            NetworkStream strm = client.GetStream();
              IFormatter bformatter = new BinaryFormatter();
              pack nettmp = (pack)bformatter.Deserialize(strm);
  </code></pre>
  
  <p>and the error is : </p>
  
  <pre><code>serializationException was unhandeled. Unable to find assembly 'WindowsFormsApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
  </code></pre>
  
  <p>Can someone tell me what the problem is?</p>