Deserialize DataSet cuase err:Permission denied

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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."
.



Relevant Pages

  • Re: Connection trough MarshalByRefObject
    ... Do you use ADO? ... client on server, server throws COMException. ... Recordset wynik = new Recordset; ...
    (microsoft.public.dotnet.framework)
  • Re: SQL over WAN with ADO, how to optimize?
    ... > and the half of the code have done already, I'm using ADO 2.8. ... so everything is doing by the client. ... Use stored procedures exclusively. ... roundtrips to the server. ...
    (microsoft.public.data.ado)
  • Re: SQL over WAN with ADO, how to optimize?
    ... > and the half of the code have done already, I'm using ADO 2.8. ... so everything is doing by the client. ... Use stored procedures exclusively. ... roundtrips to the server. ...
    (microsoft.public.sqlserver.programming)
  • Re: SQL over WAN with ADO, how to optimize?
    ... > and the half of the code have done already, I'm using ADO 2.8. ... so everything is doing by the client. ... Use stored procedures exclusively. ... roundtrips to the server. ...
    (microsoft.public.vb.database.ado)
  • Whats with ADO?
    ... I have a new client with an ADO database on a server being used by ... Now the client calls and says the computers I "worked" on are running ...
    (comp.databases.ms-access)