PC Review


Reply
Thread Tools Rate Thread

DataRowCollection.Find Method throws invalidcastexception

 
 
Sagaert Johan
Guest
Posts: n/a
 
      31st Dec 2004
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



 
Reply With Quote
 
 
 
 
Ilya Tumanov [MS]
Guest
Posts: n/a
 
      31st Dec 2004

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
>
>
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting DateTime? to itself throws invalidcastexception Andrus Microsoft C# .NET 3 23rd Oct 2009 08:40 PM
(WebBrowser.Document == null) throws InvalidCastException Zytan Microsoft C# .NET 1 27th Mar 2007 06:54 PM
DataRowCollection.Find Method Marc Pelletier Microsoft C# .NET 4 7th Jan 2005 03:53 AM
Prepared UPDATETEXT SqlCommand throws InvalidCastException after adding first chunk to database aido Microsoft ADO .NET 0 13th Oct 2004 01:54 PM
dotnet 2003/compact framework dataview find method invalidcastexception.. need explanation. MCDONAMW Microsoft Dot NET Compact Framework 8 12th Aug 2004 01:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:54 AM.