С клиента отправляю это:
[Serializable]
private struct sendcon
{
public string Nick;
public string Email;
public string Description;
public string CommandText;
}
....
sendcon sen;
MemoryStream ms = new MemoryStream();
IFormatter formatter = new BinaryFormatter();
formatter.Serialize(ms,sen);
m_sock.Send(ms.GetBuffer(), ms.GetBuffer().Length, 0 );
На сервере принимаю так:
[Serializable]
private struct sendcon
{
public string Nick;
public string Email;
public string Description;
public string CommandText;
}
.....
MemoryStream ms = new MemoryStream(aryRet);
IFormatter formatter = new BinaryFormatter();
sendcon sen1;
sen1 = (sendcon)formatter.Deserialize(ms);
При десириализации вылетает ощибка на сервере:
'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll
Additional information: Cannot find the assembly Client, Version=1.0.1543.2917, Culture=neutral, PublicKeyToken=null.
Что с этим делать?