[Mono-list] Remoting DataSets

Lluis Sanchez lluis@ximian.com
Mon, 29 Mar 2004 12:06:40 +0200

On dv, 2004-03-26 at 10:55, Helge Lenuweit wrote:
> Hi,
> I'm interested in mono's interoperating possibilities with the MS 
> framework using remoting. Several small examples passing around basic 
> types worked fine (Besides, congratulations on the work that has been 
> done!). Unfortunately, remoting a Dataset wasn't possible.
> I understand that if I intend to use TcpChannel/BinaryFormatter the 
> binary representation of the information passed on the wire needs to be 
> the same on the Microsoft side and on the mono side. As a consequence, I 

This is not the case of DataSet, since it uses custom serialization by
implementing ISerializable.

> get RemotingExceptions like "Underlying socket was closed" (Windows/NET 
> trying to access a Windows/mono Server). My general problem is that even 
> when I use mono on both sides (and on one machine),  an exception is 
> thrown ("Unknown response message from server") when trying to remote a 
> DataSet, while it works with .NET 1.1 on both sides.

This is because the serialization methods in DataSet are not yet

> Are there any ways to achieve this currently? If not, which types are 
> generally "safe" to remote, especially cross-platform?

All primitive types, types that implement ISerializable (assuming that
hey are correctly implemented) and your own types. There are other types
that also work, such as ArrayList.


> Thanks for your help,
> Helge
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list