, then the class above serializes just fine, but if the
deserializing end is .Net, it will get an exception since (apparently)
.Net doesn't have any such internal class as CurrentTimeZone.
--
Chris
Chris Micacchi wrote:
Hello everyone,
I'm getting an exception trying to send an object of type DateTime
Hello everyone,
I'm getting an exception trying to send an object of type DateTime from
a Linux machine running Mono to a Windows one running .Net. The
exception is Type System.CurrentTimeZone is not marked as
Serializable. System.TimeZone is supposedly serializable, but called
Sweet, I suspected the problem was something like that (unsupported
column type), but I didn't realize that .Net 2.0 fixed it. I guess I'll
just do the conversion to/from a string myself instead of relying on the
DataTable to do it.
Thanks for the quick (and very helpful) reply!
Chris
doing something
wrong here? I've attached a small sample program that hits this problem
for me, in case it helps. Compile it with
mcs datasettest.cs -out:datasettest.exe -r:System.Data
Thanks for any insight!
Chris Micacchi
using System.Data;
public class TestTable : DataTable
Hello,
The AssemblyName class isn't serializable-compatible between Mono 1.1.8
and .Net 1.1. The PublicToken serialization field on Mono is called
PublicKeyToken on .Net. I've attached a patch that brings Mono's
field name into line with .Net's, and successfully tested it between
.Net 1.1
down.
Thanks for any information anyone can provide!
Chris Micacchi
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list