M
mttc
I try ADO 2 with binary like that:
======================
on server i send ms to client
======================
ds.RemotingFormat = SerializationFormat.Binary
Dim myFormatter As Runtime.Serialization.IFormatter = New _
Runtime.Serialization.Formatters.Binary.BinaryFormatter
ms = New MemoryStream
myFormatter.Serialize(ms, ds)
================
on client I got the ms
================
ms.Position = 0
ds.RemotingFormat = SerializationFormat.Binary
Dim myFormatter As Runtime.Serialization.IFormatter = New _
Runtime.Serialization.Formatters.Binary.BinaryFormatter
ds = myFormatter.Deserialize(ms)
the last line cause err:
"Permission denied: cannot call non-public or static methods
remotely."
======================
on server i send ms to client
======================
ds.RemotingFormat = SerializationFormat.Binary
Dim myFormatter As Runtime.Serialization.IFormatter = New _
Runtime.Serialization.Formatters.Binary.BinaryFormatter
ms = New MemoryStream
myFormatter.Serialize(ms, ds)
================
on client I got the ms
================
ms.Position = 0
ds.RemotingFormat = SerializationFormat.Binary
Dim myFormatter As Runtime.Serialization.IFormatter = New _
Runtime.Serialization.Formatters.Binary.BinaryFormatter
ds = myFormatter.Deserialize(ms)
the last line cause err:
"Permission denied: cannot call non-public or static methods
remotely."