[Mono-dev] Remoting with DateTime

Robert Jordan robertj at gmx.net
Wed Aug 29 11:25:26 EDT 2007


Hi Lionel,

Lionel Cuir wrote:
> I've taken some time to dig again into this issue and tried to answer some 
> points mentioned in the thread (please correct me if I'm wrong!). Attached are 
> the patch for DateTime.cs (nothing really changed since March) and the unit test.

> +			if (fieldCount == 1)
> +			{
> +				#region This DateTime should have been serialized under the .NET framework 1.x or with Mono for framework v1.x


You missed  serializedFieldEnum.MoveNext() at this place.


> +				serializedFieldName = serializedFieldEnum.Name;
> +				serializedFieldType = serializedFieldEnum.ObjectType;
> +				if (serializedFieldName != "ticks")
> +					throw new SerializationException("Invalid serialized data for this DataTime - 1 single unknown member.");
> +

The patch was pretty complex, so I rewrote it a bit:

http://bugzilla.ximian.com/showattachment.cgi?attach_id=19890

The SOAP workaround did not work for me. It think we should rather fix
the issue in the SOAP formatter.

Bug entry: http://bugzilla.ximian.com/show_bug.cgi?id=82400

Robert




More information about the Mono-devel-list mailing list