DataSet's relational data model.
Now, to the exception you're getting...
DataSet serialization does not produce IO exceptions, underlying stream
does.
It means it can not open the file or write to it.
There might be a number of reasons (to name a few):
1. Not enough space on a card - check available space.
2. Faulty card - use another card.
3. Card is read only - check read only switch on a card if any.
4. File is open by another application (or your application opened file
before, but never closed it) - close all running applications, make sure
you're closing all files even in case of exceptions.
5. File is read only - make sure it's not. If you're using source control
and deploying the file via VS, it's probably read only.
6. File path is incorrect - make sure path is correct.
As to the file, recreating itself - you probably have an application
running which creates the file.
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Charles Wang" <
[email protected]>
References: <
[email protected]>
<
[email protected]>
Subject: Re: Very slow to serialize Xml file
Date: Sun, 14 Mar 2004 19:13:50 +0800
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 221.216.254.20
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:48510
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
Hello Alex!
I used to save DataSet as you said. But sometimes DataSet.ReadXml() can
not
get out data correctly, and sometimes it could. And sometimes it will
occor
a IOException whild saving the DataSet to CF card. I can not debug the
reason cause such exception.
"Alex Feinman [MVP]" <
[email protected]> дÈëÏûÏ¢ÐÂÎÅ
:
[email protected]...
Why are you "serializing" DataSet? DataSet supports WriteXml and ReadXml
methods that persist it to file and reads it from the file.
Hello everyone!
I use OpenNETCF.XML.XmlSerializer to serialize a DataSet object into
my
CF
card. Although the file is not large (about 6k), the store