That should be fixed in SP2. Please see this for details.
http://groups-beta.google.com/group/...amework.compac
tframework/browse_frm/thread/bfa0e58d18ea7aef#cdba088447d93cc4
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
> Reply-To: "Sagaert Johan" <(E-Mail Removed)>
> From: "Sagaert Johan" <(E-Mail Removed)>
> Subject: DataRowCollection.Find Method throws invalidcastexception
> Date: Fri, 31 Dec 2004 01:01:47 +0100
> Lines: 22
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
> Message-ID: <(E-Mail Removed)>
> Newsgroups: microsoft.public.dotnet.framework.compactframework
> NNTP-Posting-Host: 44.128-136-217.adsl.skynet.be 217.136.128.44
> Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
> Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:67768
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
>
> This peace of code throws an invalidcastexception on the find method,
Why
> ?
>
> (the same code with the same xml files does not ggive any errors.in the
full
> framework)
>
> int i=0;
> DataSet dss=new DataSet();
>
> dss.ReadXmlSchema("localarm.sch");
>
> dss.ReadXml("localarm.xml");
>
> DataRow dr=dss.Tables["ALARMS"].Rows.Find(i);
>
>
> any hints ?
>
> Johan
>
>
>
>