internal static Object UnmarshalFromBuffer(byte [] b)
{
MemoryStream stm = new MemoryStream(b);
BinaryFormatter fmt = new BinaryFormatter();
fmt.AssemblyFormat = System.Runtime.Serialization.Formatters.FormatterAssemblyStyle.Simple; //*******Add this line
fmt.SurrogateSelector = null;
fmt.Context = new StreamingContext(StreamingContextStates.Other);
Object o = fmt.Deserialize(stm, null, false /* No Security check */);
return o;
}