[Mono-list] Serialization problem between Mono and .NET
robertj at gmx.net
Fri Jan 19 21:10:44 EST 2007
Augusto Cesar Radtke wrote:
> Hello, I'm facing this error when trying to exchange some structure like
> Dictionary <> between Mono and .NET using Remoting:
> Parse Error, no type associated with Xml key a2
> mscorlib, Version=184.108.40.206, Culture=neutral,
> PublicKeyToken=b77a5c561934e089]] mscorlib, Version=220.127.116.11,
> Culture=neutral, PublicKeyToken=b77a5c561934e089
> I have already research a lot about it and I think it can be serialization
> incompatibility between Mono and .NET, I have read that even between
> different .NET Framework versions this could occur, but I'm not totally
> I'm using the SOAP serialization by setting [Serializable] attribute in the
> class. Should I implement the ISerializable interface instead of this? Will
> this fix my problem or there is another way to circumventing this?
SOAP is a dead end for generic types.
MS.NET 2.0 SOAP doesn't support generic types at all, while
Mono's implementation partially supports them by mistake.
The .NET 2.0 remoting and binary serialization support
will be available in the next Mono release.
More information about the Mono-list