[Mono-dev] urgent issue with reading xml into adataset(System.InvalidCastException)

Rosenberg, Shlomi ShRosenberg at nds.com
Fri Apr 4 15:52:45 EDT 2008


Thanks. Done (Bug #377146).

Shlomi 

-----Original Message-----
From: Veerapuram Varadhan [mailto:vvaradhan at novell.com] 
Sent: Friday, April 04, 2008 1:09 PM
To: Rosenberg, Shlomi
Cc: mono-devel-list at lists.ximian.com
Subject: RE: [Mono-dev] urgent issue with reading xml into adataset(System.InvalidCastException)


On Fri, 2008-04-04 at 12:52 +0300, Rosenberg, Shlomi wrote:
> How do I file a bug (sorry I'm new here)? 
> 
1) Goto http://bugzilla.novell.com
2) Create a user account for yourself and login to bugzilla
3) Click on "New" from the top-grey-band
4) Choose "Mono" as Classification (Product-line)
5) Choose "Mono: Class libraries" as Product and click "Use this product"
6) Choose "System.Data" for Component and fill up the details and submit the report.

If Bugzilla is not working, you can send in your sample to the list. 

HTH,

V. Varadhan

> -----Original Message-----
> From: Veerapuram Varadhan [mailto:vvaradhan at novell.com]
> Sent: Friday, April 04, 2008 12:50 PM
> To: Rosenberg, Shlomi
> Cc: mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-dev] urgent issue with reading xml into a 
> dataset(System.InvalidCastException)
> 
> Hi Shlomi,
> 
> On Fri, 2008-04-04 at 09:09 +0300, Rosenberg, Shlomi wrote:
> > 
> > Hi,
> >  
> > I hava a dataset with a table containing the following row:
> > stepTable.Columns.Add("FuncXml", typeof(LabRat.LrtXml)); in the XML 
> > file it looks like this:
> > <FuncXml>
> >   <Func Name="CUT_IntPassiveIn()" Direction="PASSIVE_MOCK">
> >     <Param Name="paramLen" Type="int" Len="1" InOut="IN" Union="FALSE"
> > Callback="">
> >     </Param>
> >     <Param Name="single" Type="int" Len="1" InOut="IN" Union="FALSE"
> > Callback="">
> >     </Param>
> >     <Return Name="retVal" Type="int" Len="1" InOut="OUT" Union="FALSE"
> > Callback="">
> >     </Return>
> >   </Func>
> > </FuncXml>
> >  
> > LrtXml is a class that implements IXmlSerializable, and it works 
> > fine on .NET framework 2.0.
> >  
> > When running on Linux using mono, i keep getting:
> > System.InvalidCastException: Unknown target conversion type
> >   at System.Convert.ToType (System.Object value, System.Type 
> > conversionType, IFormatProvider provider) [0x00000]
> >   at System.Convert.ChangeType (System.Object value, System.Type
> > conversionType) [0x00000]
> >   at System.Data.XmlDataReader.StringToObject (System.Type type, 
> > System.String value) [0x00000]
> >   at System.Data.XmlDataReader.ReadElementElement 
> > (System.Data.DataRow
> > row) [0x00000]
> >   at System.Data.XmlDataReader.ReadElementContent 
> > (System.Data.DataRow
> > row) [0x00000]
> >   at System.Data.XmlDataReader.ReadElement (System.Data.DataRow row) 
> > [0x00000]
> >   at System.Data.XmlDataReader.ReadDataSetContent () [0x00000]
> >   at System.Data.XmlDataReader.ReadTopLevelElement () [0x00000]
> >   at System.Data.XmlDataReader.Process () [0x00000]
> >   at System.Data.XmlDataReader.ReadXml (System.Data.DataSet dataset, 
> > System.Xml.XmlReader reader, XmlReadMode mode) [0x00000]
> >   at System.Data.DataSet.ReadXml (System.Xml.XmlReader reader, 
> > XmlReadMode mode) [0x00000]
> >   at System.Data.DataSet.ReadXml (System.Xml.XmlReader r) [0x00000]
> >   at System.Data.DataSet.ReadXml (System.String str) [0x00000]
> >   at LabRat.LrtTestEngine.openLrs () [0x00000]
> 
> Can you file a bug and attach a test sample to reproduce this issue?
> IIUC, in Mono's System.Data.DataSet, the default implementation is to get the serialization data either from XML or binary data.  Your sample would help us understand the default of MS.NET and fix the issue.
> 
> TIA,
> 
> V. Varadhan
> 
> 
> 
> **********************************************************************
> *************** This e-mail is confidential, the property of NDS Ltd 
> and intended for the addressee only.  Any dissemination, copying or distribution of this message or any attachments by anyone other than the intended recipient is strictly prohibited.  If you have received this message in error, please immediately notify the postmaster at nds.com and destroy the original message.  Messages sent to and from NDS may be monitored.  NDS cannot guarantee any message delivery method is secure or error-free.  Information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.  We do not accept responsibility for any errors or omissions in this message and/or attachment that arise as a result of transmission.  You should carry out your own virus checks before opening any attachment.  Any views or opinions presented are solely those of the author and do not necessarily represent those of NDS.
> 
> NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
> 
> To protect the environment please do not print this e-mail unless necessary.
> **********************************************************************
> ****************

*************************************************************************************
This e-mail is confidential, the property of NDS Ltd and intended for the addressee only.  Any dissemination, copying or distribution of this message or any attachments by anyone other than the intended recipient is strictly prohibited.  If you have received this message in error, please immediately notify the postmaster at nds.com and destroy the original message.  Messages sent to and from NDS may be monitored.  NDS cannot guarantee any message delivery method is secure or error-free.  Information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.  We do not accept responsibility for any errors or omissions in this message and/or attachment that arise as a result of transmission.  You should carry out your own virus checks before opening any attachment.  Any views or opinions presented are solely those of the author and do not necessarily represent those of NDS.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00

To protect the environment please do not print this e-mail unless necessary.
**************************************************************************************


More information about the Mono-devel-list mailing list