[Mono-list] Copying a DataTable with DataTable.Copy() fails on Mono 1.1.4
lunkwill@gmx.net
lunkwill@gmx.net
Fri, 25 Feb 2005 10:12:32 +0100 (MET)
This is a MIME encapsulated multipart message -
please use a MIME-compliant e-mail program to open it.
Dies ist eine mehrteilige Nachricht im MIME-Format -
bitte verwenden Sie zum Lesen ein MIME-konformes Mailprogramm.
--========GMXBoundary243681109248970
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
hey folks!
Some days back I upgraded from 1.1.3 to 1.1.4 on SLES9
Since having done so, I get the following error in my code (works ok on
1.1.3 and M$.NET) when trying to copy a DataTable using the
DataTable.Copy()-Method:
Unhandled Exception: System.ArgumentException: Cannot set MaxLength property
on 'NAVI_NODE_text' column which is mapped to SimpleContent.
in <0x00058> System.Data.DataColumn:set_MaxLength (int)
in <0x000f0> System.Data.DataTable:CopyColumn (System.Data.DataColumn)
in <0x002fb> System.Data.DataTable:CopyProperties (System.Data.DataTable)
in <0x00046> System.Data.DataTable:Clone ()
in <0x0001e> System.Data.DataTable:Copy ()
in <0x0035e> DataTableTest.MainClass:Main (string[])
I have attached a simple test case including a simplified schema and
xml-file which again works on MS.NET but not on Mono 1.1.4.
Am I doing something completely silly, or is it a bug? Tell me if I should
file a bug. I wanted to ask first, before polluting bugzilla
regards,
/d
--
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl
--========GMXBoundary243681109248970
Content-Type: text/plain; name="Main.cs"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Main.cs"
dXNpbmcgU3lzdGVtOw0KdXNpbmcgU3lzdGVtLkRhdGE7DQoNCm5hbWVzcGFjZSBEYXRhVGFibGVU
ZXN0DQp7DQoJY2xhc3MgTWFpbkNsYXNzDQoJew0KCQlwdWJsaWMgc3RhdGljIHZvaWQgTWFpbihz
dHJpbmdbXSBhcmdzKQ0KCQl7DQoJCSAgIERhdGFTZXQgZHMgPSBuZXcgRGF0YVNldCgpOw0KCQkg
ICBkcy5SZWFkWG1sU2NoZW1hKCJzY2hlbWEueHNkIik7DQoJCSAgIGRzLlJlYWRYbWwoImRhdGEu
eG1sIik7DQoJCSAgIA0KCQkgICBmb3JlYWNoIChEYXRhVGFibGUgdCBpbiBkcy5UYWJsZXMpDQoJ
CSAgIHsNCgkJICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIlxuLS0tPiIgKyB0LlRhYmxlTmFtZSk7
DQoJCSAgICAgIGZvcmVhY2ggKERhdGFDb2x1bW4gYyBpbiB0LkNvbHVtbnMpDQoJCSAgICAgICAg
IENvbnNvbGUuV3JpdGUoInswLDEyfSB8ICIsIGMuQ29sdW1uTmFtZSk7DQoJCSAgIH0NCg0KCQkg
ICBDb25zb2xlLldyaXRlTGluZSgpOw0KCQkgICBEYXRhVGFibGUgZHQgPSBkcy5UYWJsZXNbIk5B
VklfTk9ERSJdLkNvcHkoKTsNCg0KCQkgICBmb3JlYWNoIChEYXRhUm93IHIgaW4gZHQuUm93cykN
CiAgICAgIAl7DQogICAgICAJCWZvcmVhY2ggKERhdGFDb2x1bW4gYyBpbiBkdC5Db2x1bW5zKQ0K
ICAgICAgCQkJQ29uc29sZS5Xcml0ZSgiezAsMTJ9IHwgIiwgcltjLkNvbHVtbk5hbWVdKTsNCiAg
ICAgIAkJQ29uc29sZS5Xcml0ZUxpbmUoKTsNCiAgICAgIAl9DQoJCX0NCgl9DQp9DQo=
--========GMXBoundary243681109248970
Content-Type: text/xml; name="schema.xsd"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="schema.xsd"
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjx4czpzY2hlbWEgZWxlbWVu
dEZvcm1EZWZhdWx0PSJxdWFsaWZpZWQiIGF0dHJpYnV0ZUZvcm1EZWZhdWx0PSJ1bnF1YWxpZmll
ZCIgeG1sbnM6eHM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIj4NCiAgIDx4czpl
bGVtZW50IG5hbWU9IlVTRVJfSU5GTyI+DQogICAgICA8eHM6Y29tcGxleFR5cGU+DQogICAgICAg
ICA8eHM6c2VxdWVuY2U+DQogICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJGU1RfTkFNRSI+
DQogICAgICAgICAgICAgICA8eHM6c2ltcGxlVHlwZT4NCiAgICAgICAgICAgICAgICAgIDx4czpy
ZXN0cmljdGlvbiBiYXNlPSJ4czpzdHJpbmciPg0KICAgICAgICAgICAgICAgICAgICAgPHhzOm1p
bkxlbmd0aCB2YWx1ZT0iMCIvPg0KICAgICAgICAgICAgICAgICAgICAgPHhzOm1heExlbmd0aCB2
YWx1ZT0iMzAiLz4NCiAgICAgICAgICAgICAgICAgIDwveHM6cmVzdHJpY3Rpb24+DQogICAgICAg
ICAgICAgICA8L3hzOnNpbXBsZVR5cGU+DQogICAgICAgICAgICA8L3hzOmVsZW1lbnQ+DQogICAg
ICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJMU1RfTkFNRSI+DQogICAgICAgICAgICAgICA8eHM6
c2ltcGxlVHlwZT4NCiAgICAgICAgICAgICAgICAgIDx4czpyZXN0cmljdGlvbiBiYXNlPSJ4czpz
dHJpbmciPg0KICAgICAgICAgICAgICAgICAgICAgPHhzOm1pbkxlbmd0aCB2YWx1ZT0iMCIvPg0K
ICAgICAgICAgICAgICAgICAgICAgPHhzOm1heExlbmd0aCB2YWx1ZT0iMzAiLz4NCiAgICAgICAg
ICAgICAgICAgIDwveHM6cmVzdHJpY3Rpb24+DQogICAgICAgICAgICAgICA8L3hzOnNpbXBsZVR5
cGU+DQogICAgICAgICAgICA8L3hzOmVsZW1lbnQ+DQogICAgICAgICAgICA8eHM6ZWxlbWVudCBu
YW1lPSJOQVZJX05PREVTIj4NCiAgICAgICAgICAgICAgIDx4czpjb21wbGV4VHlwZT4NCiAgICAg
ICAgICAgICAgICAgIDx4czpzZXF1ZW5jZT4NCiAgICAgICAgICAgICAgICAgICAgIDx4czplbGVt
ZW50IG5hbWU9Ik5BVklfTk9ERSIgbWluT2NjdXJzPSIwIiBtYXhPY2N1cnM9InVuYm91bmRlZCI+
DQogICAgICAgICAgICAgICAgICAgICAgICA8eHM6Y29tcGxleFR5cGU+DQogICAgICAgICAgICAg
ICAgICAgICAgICAgICA8eHM6c2ltcGxlQ29udGVudD4NCiAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgIDx4czpleHRlbnNpb24gYmFzZT0ieHM6cG9zaXRpdmVJbnRlZ2VyIj4NCiAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgIDx4czphdHRyaWJ1dGUgbmFtZT0icGFyZW50X2lkIiB0
eXBlPSJ4czpwb3NpdGl2ZUludGVnZXIiIHVzZT0ib3B0aW9uYWwiLz4NCiAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIDx4czphdHRyaWJ1dGUgbmFtZT0ibmFtZSIgdXNlPSJyZXF1aXJl
ZCI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8eHM6c2ltcGxlVHlwZT4N
CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx4czpyZXN0cmljdGlvbiBi
YXNlPSJ4czpzdHJpbmciPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgPHhzOm1heExlbmd0aCB2YWx1ZT0iNDAiLz4NCiAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgIDx4czptaW5MZW5ndGggdmFsdWU9IjEiLz4NCiAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgIDwveHM6cmVzdHJpY3Rpb24+DQogICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICA8L3hzOnNpbXBsZVR5cGU+DQogICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICA8L3hzOmF0dHJpYnV0ZT4NCiAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIDx4czphdHRyaWJ1dGUgbmFtZT0iZnJhbWUiIHVzZT0ib3B0aW9uYWwiPg0KICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHhzOnNpbXBsZVR5cGU+DQogICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8eHM6cmVzdHJpY3Rpb24gYmFzZT0ieHM6
c3RyaW5nIj4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx4czpt
YXhMZW5ndGggdmFsdWU9IjE1Ii8+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICA8eHM6bWluTGVuZ3RoIHZhbHVlPSIxIi8+DQogICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICA8L3hzOnJlc3RyaWN0aW9uPg0KICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgPC94czpzaW1wbGVUeXBlPg0KICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgPC94czphdHRyaWJ1dGU+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICA8eHM6YXR0cmlidXRlIG5hbWU9Inpfb3JkZXIiIHR5cGU9InhzOnBvc2l0aXZlSW50ZWdlciIg
dXNlPSJyZXF1aXJlZCIvPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC94czpleHRl
bnNpb24+DQogICAgICAgICAgICAgICAgICAgICAgICAgICA8L3hzOnNpbXBsZUNvbnRlbnQ+DQog
ICAgICAgICAgICAgICAgICAgICAgICA8L3hzOmNvbXBsZXhUeXBlPg0KICAgICAgICAgICAgICAg
ICAgICAgPC94czplbGVtZW50Pg0KICAgICAgICAgICAgICAgICAgPC94czpzZXF1ZW5jZT4NCiAg
ICAgICAgICAgICAgIDwveHM6Y29tcGxleFR5cGU+DQogICAgICAgICAgICA8L3hzOmVsZW1lbnQ+
DQogICAgICAgICA8L3hzOnNlcXVlbmNlPg0KICAgICAgPC94czpjb21wbGV4VHlwZT4NCiAgIDwv
eHM6ZWxlbWVudD4NCjwveHM6c2NoZW1hPg0K
--========GMXBoundary243681109248970
Content-Type: text/xml; name="data.xml"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="data.xml"
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxVU0VSX0lORk8geG1sbnM6
eHM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIiB4bWxuczp4c2k9Imh0dHA6Ly93
d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIj4NCiAgIDxGU1RfTkFNRT5BcnRodXI8
L0ZTVF9OQU1FPg0KICAgPExTVF9OQU1FPkRlbnQ8L0xTVF9OQU1FPg0KICAgPE5BVklfTk9ERVM+
DQogICAgICA8TkFWSV9OT0RFIG5hbWU9ImhvbWUiIGZyYW1lPSJ3ZWxjb21lIiB6X29yZGVyPSI2
Ij4zPC9OQVZJX05PREU+DQogICAgICA8TkFWSV9OT0RFIG5hbWU9Im9wdGlvbnMiIGZyYW1lPSJu
b25lIiB6X29yZGVyPSI3Ij44NTwvTkFWSV9OT0RFPg0KICAgICAgPE5BVklfTk9ERSBwYXJlbnRf
aWQ9IjMiIG5hbWU9Imxpc3QiIGZyYW1lPSJsaXN0IiB6X29yZGVyPSIxMiI+NDE8L05BVklfTk9E
RT4NCiAgICAgIDxOQVZJX05PREUgcGFyZW50X2lkPSIzIiBuYW1lPSJkZXRhaWwiIGZyYW1lPSJk
ZXRhaWwiIHpfb3JkZXI9IjE0Ij44MjwvTkFWSV9OT0RFPg0KICAgICAgPE5BVklfTk9ERSBwYXJl
bnRfaWQ9Ijg1IiBuYW1lPSJwcmVmcyIgZnJhbWU9InByZWZzIiB6X29yZGVyPSIxIj44NzwvTkFW
SV9OT0RFPg0KICAgICAgPE5BVklfTk9ERSBwYXJlbnRfaWQ9Ijg1IiBuYW1lPSJoZWxwIiBmcmFt
ZT0iaGVscCIgel9vcmRlcj0iMiI+ODk8L05BVklfTk9ERT4NCiAgIDwvTkFWSV9OT0RFUz4NCjwv
VVNFUl9JTkZPPg0K
--========GMXBoundary243681109248970--