writeXML(fullFilePath) DOESN'T Write

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to write a DataSet back out to the same location it reads in from with readXML(fullFilePath), just to a different filename. The program breezes right on through with no exceptions, but the file just isn't there!

There's data in the DataSet and I have write rights to the fullFilePath specified.

What could be happening and how do I get around it?
 
Art,

I could not think if anything, you're the first one with this problem.
Many developers are confused with relative paths which are not supported on
CE, so file in a wrong location is pretty common.
But no file at all and no exception... That's something new.

Could you try this for me? You can check for file "foo.xml" in root folder
with file explorer as soon as you run this app and click on a button...
Please let me know if file was saved.

using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;

namespace WriteXML
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.MainMenu mainMenu1;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.button1 = new System.Windows.Forms.Button();
//
// button1
//
this.button1.Location = new System.Drawing.Point(88, 72);
this.button1.Text = "Write!";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.Controls.Add(this.button1);
this.Menu = this.mainMenu1;
this.Text = "Form1";

}
#endregion

/// <summary>
/// The main entry point for the application.
/// </summary>

static void Main()
{
Application.Run(new Form1());
}

private void button1_Click(object sender, System.EventArgs e)
{
DataSet ds = new DataSet();
ds.WriteXml("\\Foo.xml");
}
}
}

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRgh7+S0I6sJVGLRoScPURuc4Zpiw==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
Subject: writeXML(fullFilePath) DOESN'T Write
Date: Fri, 2 Jul 2004 15:56:02 -0700
Lines: 9
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56540
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I'm trying to write a DataSet back out to the same location it reads in
from with readXML(fullFilePath), just to a different filename. The program
breezes right on through with no exceptions, but the file just isn't there!
 
Will give it a try on my development machine at work tomorrow. I'm writing in VB, but I think I can do the conversion from C.

Thanks.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


"Ilya Tumanov [MS]" said:
Art,

I could not think if anything, you're the first one with this problem.
Many developers are confused with relative paths which are not supported on
CE, so file in a wrong location is pretty common.
But no file at all and no exception... That's something new.

Could you try this for me? You can check for file "foo.xml" in root folder
with file explorer as soon as you run this app and click on a button...
Please let me know if file was saved.

using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;

namespace WriteXML
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.MainMenu mainMenu1;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.button1 = new System.Windows.Forms.Button();
//
// button1
//
this.button1.Location = new System.Drawing.Point(88, 72);
this.button1.Text = "Write!";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.Controls.Add(this.button1);
this.Menu = this.mainMenu1;
this.Text = "Form1";

}
#endregion

/// <summary>
/// The main entry point for the application.
/// </summary>

static void Main()
{
Application.Run(new Form1());
}

private void button1_Click(object sender, System.EventArgs e)
{
DataSet ds = new DataSet();
ds.WriteXml("\\Foo.xml");
}
}
}

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRgh7+S0I6sJVGLRoScPURuc4Zpiw==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
Subject: writeXML(fullFilePath) DOESN'T Write
Date: Fri, 2 Jul 2004 15:56:02 -0700
Lines: 9
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56540
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I'm trying to write a DataSet back out to the same location it reads in
from with readXML(fullFilePath), just to a different filename. The program
breezes right on through with no exceptions, but the file just isn't there!
There's data in the DataSet and I have write rights to the fullFilePath specified.

What could be happening and how do I get around it?
 
Didn't work. Here's the C code as I converted it to VB:

Imports System
Imports System.Drawing
Imports System.Collections
Imports System.Windows.Forms
Imports System.Data

Namespace writeXML

Public Class Form1
Inherits System.Windows.Forms.Form
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu

#Region " Windows Form Designer generated code "

Public Sub New()

MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
MyBase.Dispose(disposing)
End Sub

'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Private Sub InitializeComponent()
Me.Button1 = New System.Windows.Forms.Button
Me.MainMenu1 = New System.Windows.Forms.MainMenu
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(16, 16)
Me.Button1.Size = New System.Drawing.Size(104, 40)
Me.Button1.Text = "Button1"
'
'Form1
'
Me.ClientSize = New System.Drawing.Size(138, 144)
Me.Controls.Add(Me.Button1)
Me.Menu = Me.MainMenu1
Me.Text = "Form1"

End Sub

Public Shared Sub Main()
Application.Run(New Form1)
End Sub

#End Region

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ds As DataSet = New DataSet
ds.WriteXml("\Foo.xml")
MsgBox("Just executed the WriteXML command")
End Sub
End Class
End Namespace
------------------------------------
And here's the directory structure I'm using:

Directory of r:\my documents\projects\project1\device\ilya_test

07/03/2004 10:51 AM <DIR> .
07/03/2004 10:51 AM <DIR> ..
07/03/2004 11:19 AM <DIR> Ilya_Test
07/03/2004 10:51 AM 1,094 Ilya_Test.sln
1 File(s) 1,094 bytes

Directory of r:\my documents\projects\project1\device\ilya_test\Ilya_Test

07/03/2004 11:19 AM <DIR> .
07/03/2004 11:19 AM <DIR> ..
07/03/2004 10:51 AM 883 AssemblyInfo.vb
07/03/2004 10:51 AM <DIR> bin
07/03/2004 11:02 AM 7,602 Form1.resx
07/03/2004 11:19 AM 2,129 Form1.vb
07/03/2004 11:17 AM 5,909 Ilya_Test.vbdproj
07/03/2004 11:17 AM 2,122 Ilya_Test.vbdproj.user
07/03/2004 10:51 AM <DIR> obj
5 File(s) 18,645 bytes

Directory of r:\my documents\projects\project1\device\ilya_test\Ilya_Test\bin

07/03/2004 10:51 AM <DIR> .
07/03/2004 10:51 AM <DIR> ..
07/03/2004 11:04 AM <DIR> Debug
0 File(s) 0 bytes

Directory of r:\my documents\projects\project1\device\ilya_test\Ilya_Test\bin\Debug

07/03/2004 11:04 AM <DIR> .
07/03/2004 11:04 AM <DIR> ..
07/03/2004 11:19 AM 9,728 Ilya_Test.exe
07/03/2004 11:19 AM 15,872 Ilya_Test.pdb
09/25/2002 12:42 AM 391,680 mscorlib.dll
01/10/2003 05:49 PM 4,845,698 mscorlib.xml
4 File(s) 5,262,978 bytes

Directory of r:\my documents\projects\project1\device\ilya_test\Ilya_Test\obj

07/03/2004 10:51 AM <DIR> .
07/03/2004 10:51 AM <DIR> ..
07/03/2004 11:19 AM <DIR> Debug
0 File(s) 0 bytes

Directory of r:\my documents\projects\project1\device\ilya_test\Ilya_Test\obj\Debug

07/03/2004 11:19 AM <DIR> .
07/03/2004 11:19 AM <DIR> ..
07/03/2004 11:19 AM 9,728 Ilya_Test.exe
07/03/2004 11:19 AM 15,872 Ilya_Test.pdb
07/03/2004 11:17 AM 1,776 Ilya_Test.writeXML.Form1.resources
07/03/2004 10:51 AM <DIR> temp
07/03/2004 10:51 AM <DIR> TempPE
3 File(s) 27,376 bytes

Directory of r:\my documents\projects\project1\device\ilya_test\Ilya_Test\obj\Debug\temp

07/03/2004 10:51 AM <DIR> .
07/03/2004 10:51 AM <DIR> ..
0 File(s) 0 bytes

Directory of r:\my documents\projects\project1\device\ilya_test\Ilya_Test\obj\Debug\TempPE

07/03/2004 10:51 AM <DIR> .
07/03/2004 10:51 AM <DIR> ..
0 File(s) 0 bytes

Total Files Listed:
13 File(s) 5,310,093 bytes
---------------------------------
I also tried this routine, just to see if another method would work:

Imports are System, System.IO, System.XML, System.Text


Private Sub writeToXML()

' putting this here to check the XML string for validity
' it's been containing valid XML that looks just like the
' one read in, only with updated data fields

Dim sXMLString As String = dsDeviceData.GetXml

Try
' trying another type of writing to see if it works - it doesn't
Dim sr As StreamWriter = File.CreateText(sPath + "\TestFile.txt")
sr.WriteLine("This is my file.")
sr.WriteLine("I can write ints {0} or floats {1}, and so on.", 1, 4.2)
sr.Close()

' this is the way I usually try
dsDeviceData.WriteXml(sPath + "\DeviceDataResults.xml")

Catch ex As Exception
MsgBox(ex.Message)
End Try

End Sub
--------------------------
Sure hope someone can figure out what's wrong. We all know it's got to be logical, but what's going on????

--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


Art Cabot said:
Will give it a try on my development machine at work tomorrow. I'm writing in VB, but I think I can do the conversion from C.

Thanks.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


"Ilya Tumanov [MS]" said:
Art,

I could not think if anything, you're the first one with this problem.
Many developers are confused with relative paths which are not supported on
CE, so file in a wrong location is pretty common.
But no file at all and no exception... That's something new.

Could you try this for me? You can check for file "foo.xml" in root folder
with file explorer as soon as you run this app and click on a button...
Please let me know if file was saved.

using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;

namespace WriteXML
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.MainMenu mainMenu1;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.button1 = new System.Windows.Forms.Button();
//
// button1
//
this.button1.Location = new System.Drawing.Point(88, 72);
this.button1.Text = "Write!";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.Controls.Add(this.button1);
this.Menu = this.mainMenu1;
this.Text = "Form1";

}
#endregion

/// <summary>
/// The main entry point for the application.
/// </summary>

static void Main()
{
Application.Run(new Form1());
}

private void button1_Click(object sender, System.EventArgs e)
{
DataSet ds = new DataSet();
ds.WriteXml("\\Foo.xml");
}
}
}

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRgh7+S0I6sJVGLRoScPURuc4Zpiw==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
Subject: writeXML(fullFilePath) DOESN'T Write
Date: Fri, 2 Jul 2004 15:56:02 -0700
Lines: 9
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56540
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I'm trying to write a DataSet back out to the same location it reads in
from with readXML(fullFilePath), just to a different filename. The program
breezes right on through with no exceptions, but the file just isn't there!
There's data in the DataSet and I have write rights to the fullFilePath specified.

What could be happening and how do I get around it?
 
The next step I would take is hard resetting the device and reinstalling CF.



But before you do that, could you please try that modification to your test:


Dim ds As DataSet = New DataSet
ds.WriteXml("\Foo.xml")
MsgBox("Just executed the WriteXML command")
Dim anotherDs = New DataSet

anotherDs.ReadXml ("\Foo.xml")

MsgBox("Just executed the ReadXML command")




I wonder if you'll get FileNotFound exception and/or if you'll see messages.



Best regards,



Ilya



This posting is provided "AS IS" with no warranties, and confers no rights.



Art Cabot said:
Didn't work. Here's the C code as I converted it to VB:

Imports System
Imports System.Drawing
Imports System.Collections
Imports System.Windows.Forms
Imports System.Data

Namespace writeXML

Public Class Form1
Inherits System.Windows.Forms.Form
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu

#Region " Windows Form Designer generated code "

Public Sub New()

MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As
Boolean)
MyBase.Dispose(disposing)
End Sub

'NOTE: The following procedure is required by the Windows Form
Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Private Sub InitializeComponent()
Me.Button1 = New System.Windows.Forms.Button
Me.MainMenu1 = New System.Windows.Forms.MainMenu
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(16, 16)
Me.Button1.Size = New System.Drawing.Size(104, 40)
Me.Button1.Text = "Button1"
'
'Form1
'
Me.ClientSize = New System.Drawing.Size(138, 144)
Me.Controls.Add(Me.Button1)
Me.Menu = Me.MainMenu1
Me.Text = "Form1"

End Sub

Public Shared Sub Main()
Application.Run(New Form1)
End Sub

#End Region

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim ds As DataSet = New DataSet
ds.WriteXml("\Foo.xml")
MsgBox("Just executed the WriteXML command")
End Sub
End Class
End Namespace
------------------------------------
And here's the directory structure I'm using:

Directory of r:\my documents\projects\project1\device\ilya_test

07/03/2004 10:51 AM <DIR> .
07/03/2004 10:51 AM <DIR> ..
07/03/2004 11:19 AM <DIR> Ilya_Test
07/03/2004 10:51 AM 1,094 Ilya_Test.sln
1 File(s) 1,094 bytes

Directory of r:\my documents\projects\project1\device\ilya_test\Ilya_Test

07/03/2004 11:19 AM <DIR> .
07/03/2004 11:19 AM <DIR> ..
07/03/2004 10:51 AM 883 AssemblyInfo.vb
07/03/2004 10:51 AM <DIR> bin
07/03/2004 11:02 AM 7,602 Form1.resx
07/03/2004 11:19 AM 2,129 Form1.vb
07/03/2004 11:17 AM 5,909 Ilya_Test.vbdproj
07/03/2004 11:17 AM 2,122 Ilya_Test.vbdproj.user
07/03/2004 10:51 AM <DIR> obj
5 File(s) 18,645 bytes

Directory of r:\my
documents\projects\project1\device\ilya_test\Ilya_Test\bin

07/03/2004 10:51 AM <DIR> .
07/03/2004 10:51 AM <DIR> ..
07/03/2004 11:04 AM <DIR> Debug
0 File(s) 0 bytes

Directory of r:\my
documents\projects\project1\device\ilya_test\Ilya_Test\bin\Debug

07/03/2004 11:04 AM <DIR> .
07/03/2004 11:04 AM <DIR> ..
07/03/2004 11:19 AM 9,728 Ilya_Test.exe
07/03/2004 11:19 AM 15,872 Ilya_Test.pdb
09/25/2002 12:42 AM 391,680 mscorlib.dll
01/10/2003 05:49 PM 4,845,698 mscorlib.xml
4 File(s) 5,262,978 bytes

Directory of r:\my
documents\projects\project1\device\ilya_test\Ilya_Test\obj

07/03/2004 10:51 AM <DIR> .
07/03/2004 10:51 AM <DIR> ..
07/03/2004 11:19 AM <DIR> Debug
0 File(s) 0 bytes

Directory of r:\my
documents\projects\project1\device\ilya_test\Ilya_Test\obj\Debug

07/03/2004 11:19 AM <DIR> .
07/03/2004 11:19 AM <DIR> ..
07/03/2004 11:19 AM 9,728 Ilya_Test.exe
07/03/2004 11:19 AM 15,872 Ilya_Test.pdb
07/03/2004 11:17 AM 1,776 Ilya_Test.writeXML.Form1.resources
07/03/2004 10:51 AM <DIR> temp
07/03/2004 10:51 AM <DIR> TempPE
3 File(s) 27,376 bytes

Directory of r:\my
documents\projects\project1\device\ilya_test\Ilya_Test\obj\Debug\temp

07/03/2004 10:51 AM <DIR> .
07/03/2004 10:51 AM <DIR> ..
0 File(s) 0 bytes

Directory of r:\my
documents\projects\project1\device\ilya_test\Ilya_Test\obj\Debug\TempPE

07/03/2004 10:51 AM <DIR> .
07/03/2004 10:51 AM <DIR> ..
0 File(s) 0 bytes

Total Files Listed:
13 File(s) 5,310,093 bytes
---------------------------------
I also tried this routine, just to see if another method would work:

Imports are System, System.IO, System.XML, System.Text


Private Sub writeToXML()

' putting this here to check the XML string for validity
' it's been containing valid XML that looks just like the
' one read in, only with updated data fields

Dim sXMLString As String = dsDeviceData.GetXml

Try
' trying another type of writing to see if it works - it doesn't
Dim sr As StreamWriter = File.CreateText(sPath +
"\TestFile.txt")
sr.WriteLine("This is my file.")
sr.WriteLine("I can write ints {0} or floats {1}, and so on.",
1, 4.2)
sr.Close()

' this is the way I usually try
dsDeviceData.WriteXml(sPath + "\DeviceDataResults.xml")

Catch ex As Exception
MsgBox(ex.Message)
End Try

End Sub
--------------------------
Sure hope someone can figure out what's wrong. We all know it's got to be
logical, but what's going on????

--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


Art Cabot said:
Will give it a try on my development machine at work tomorrow. I'm
writing in VB, but I think I can do the conversion from C.

Thanks.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


"Ilya Tumanov [MS]" said:
Art,

I could not think if anything, you're the first one with this problem.
Many developers are confused with relative paths which are not
supported on
CE, so file in a wrong location is pretty common.
But no file at all and no exception... That's something new.

Could you try this for me? You can check for file "foo.xml" in root
folder
with file explorer as soon as you run this app and click on a button...
Please let me know if file was saved.

using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;

namespace WriteXML
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.MainMenu mainMenu1;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.button1 = new System.Windows.Forms.Button();
//
// button1
//
this.button1.Location = new System.Drawing.Point(88, 72);
this.button1.Text = "Write!";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Form1
//
this.Controls.Add(this.button1);
this.Menu = this.mainMenu1;
this.Text = "Form1";

}
#endregion

/// <summary>
/// The main entry point for the application.
/// </summary>

static void Main()
{
Application.Run(new Form1());
}

private void button1_Click(object sender, System.EventArgs e)
{
DataSet ds = new DataSet();
ds.WriteXml("\\Foo.xml");
}
}
}

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRgh7+S0I6sJVGLRoScPURuc4Zpiw==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
Subject: writeXML(fullFilePath) DOESN'T Write
Date: Fri, 2 Jul 2004 15:56:02 -0700
Lines: 9
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:56540
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I'm trying to write a DataSet back out to the same location it reads
in
from with readXML(fullFilePath), just to a different filename. The
program
breezes right on through with no exceptions, but the file just isn't
there!

There's data in the DataSet and I have write rights to the
fullFilePath
specified.

What could be happening and how do I get around it?
 
Won't be able to try it till Tuesday, but it's a good idea. My bet is that I'll get a FileNotFound exception.

So far, this app is running on an emulator, so everytime I start it cold (with the emulator closed), it's loading everything fresh. There's just something I'm missing...

--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia
 
Wait a minute... Are you doing this on a Windows CE device or on the
desktop? If on the device, what Write Rights are you talking about? Windows
CE does not have filesystem permissions. Or perhaps you expect to find the
dataset xml written by the code on the device in your PC filesystem?

--
Alex Feinman
---
Visit http://www.opennetcf.org
Art Cabot said:
I'm trying to write a DataSet back out to the same location it reads in
from with readXML(fullFilePath), just to a different filename. The program
breezes right on through with no exceptions, but the file just isn't there!
 
Right now it's running on a Windows CE emulator and reading its input XML into the dataset from the path noted in the code I've provided (using variable sPath). I'm simply trying to write the XML back out to the same path using the ds.writeXML(fullPath) command.

The only reason rights are being mentioned at all is because we're trying to figure out why the XML is not getting written back out. If I use one of the sample code pieces from the VB .NET Resource Kit ("How To Write An Offline Application") that runs under the full .NET Framework, it works great, but when I move down into the Compact Framework, it won't write.

To reiterate, it throws no exceptions, but the file just isn't there --- anywhere --- when I look.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


Alex Feinman said:
Wait a minute... Are you doing this on a Windows CE device or on the
desktop? If on the device, what Write Rights are you talking about? Windows
CE does not have filesystem permissions. Or perhaps you expect to find the
dataset xml written by the code on the device in your PC filesystem?

--
Alex Feinman
---
Visit http://www.opennetcf.org
Art Cabot said:
I'm trying to write a DataSet back out to the same location it reads in
from with readXML(fullFilePath), just to a different filename. The program
breezes right on through with no exceptions, but the file just isn't there!
 
I thought I might have the answer when I saw this in the emulator's Help file:

The following hardware and drivers are not supported in the Emulator:

Universal serial bus (USB) devices

PC Card devices

Storage devices, which include compact flash (CF) cards and hard disks

File system drivers, which include file allocation table (FAT), compact disc (CD), and digital video disc (DVD) drivers

IEEE 1394 devices

But when I had a couple of programmers at our corporate headquarters try on both a Windows CE and Pocket PC emulator, it worked for them.

What am I missing?
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


Art Cabot said:
Right now it's running on a Windows CE emulator and reading its input XML into the dataset from the path noted in the code I've provided (using variable sPath). I'm simply trying to write the XML back out to the same path using the ds.writeXML(fullPath) command.

The only reason rights are being mentioned at all is because we're trying to figure out why the XML is not getting written back out. If I use one of the sample code pieces from the VB .NET Resource Kit ("How To Write An Offline Application") that runs under the full .NET Framework, it works great, but when I move down into the Compact Framework, it won't write.

To reiterate, it throws no exceptions, but the file just isn't there --- anywhere --- when I look.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia
 
Could you please describe how exactly you're looking for a file?
I also wonder if you get an exception on attempt to load saved file...

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRju6KwGDQVK4dfRI6GvmgalEjZcg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Tue, 6 Jul 2004 17:45:01 -0700
Lines: 64
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56729
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I thought I might have the answer when I saw this in the emulator's Help file:

The following hardware and drivers are not supported in the Emulator:

Universal serial bus (USB) devices

PC Card devices

Storage devices, which include compact flash (CF) cards and hard disks

File system drivers, which include file allocation table (FAT), compact
disc (CD), and digital video disc (DVD) drivers
IEEE 1394 devices

But when I had a couple of programmers at our corporate headquarters try
on both a Windows CE and Pocket PC emulator, it worked for them.
What am I missing?
XML into the dataset from the path noted in the code I've provided (using
variable sPath). I'm simply trying to write the XML back out to the same
path using the ds.writeXML(fullPath) command.trying to figure out why the XML is not getting written back out. If I use
one of the sample code pieces from the VB .NET Resource Kit ("How To Write
An Offline Application") that runs under the full .NET Framework, it works
great, but when I move down into the Compact Framework, it won't write.
 
Sorry, I meant to tell you...

When I tried your suggestion of immediately creating another dataset and trying to read the file just "created", as in:

Dim ds As DataSet = New DataSet

ds.WriteXml("\Foo.xml")
MsgBox("Just executed the WriteXML command")
Dim anotherDs = New DataSet

anotherDs.ReadXml ("\Foo.xml")

MsgBox("Just executed the ReadXML command")

it executes with no exceptions --- and no file. I've looked for the file at all levels of the directory from which the app is running, both manually and via Search. I already know where the app is READING the XML file from and, since the path I give the writeXML function is exactly the same, it seems the file should be there. If it is, though, it's invisible.

As posted earlier, a programmer at our corporate office tried to write XML within both Windows CE and Pocket PC emulators and it worked. This is a very frustrating mystery...
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


"Ilya Tumanov [MS]" said:
Could you please describe how exactly you're looking for a file?
I also wonder if you get an exception on attempt to load saved file...

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRju6KwGDQVK4dfRI6GvmgalEjZcg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Tue, 6 Jul 2004 17:45:01 -0700
Lines: 64
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56729
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I thought I might have the answer when I saw this in the emulator's Help file:

The following hardware and drivers are not supported in the Emulator:

Universal serial bus (USB) devices

PC Card devices

Storage devices, which include compact flash (CF) cards and hard disks

File system drivers, which include file allocation table (FAT), compact
disc (CD), and digital video disc (DVD) drivers
IEEE 1394 devices

But when I had a couple of programmers at our corporate headquarters try
on both a Windows CE and Pocket PC emulator, it worked for them.
What am I missing?
XML into the dataset from the path noted in the code I've provided (using
variable sPath). I'm simply trying to write the XML back out to the same
path using the ds.writeXML(fullPath) command.trying to figure out why the XML is not getting written back out. If I use
one of the sample code pieces from the VB .NET Resource Kit ("How To Write
An Offline Application") that runs under the full .NET Framework, it works
great, but when I move down into the Compact Framework, it won't write.
 
I'd say that's a concrete proof the file is saved.
Should file not be saved, you would get FileNotFound exception which you
had before on attempt to load file without proper path.
If you have doubts, you can add some data into the DataSet, save it, load
it again and see if data was actually loaded.

As to missing file, by any chance, are you trying to locate this file on
desktop's hard drive using desktop's search and explorer?
If so, you won't be able to find it as emulator's file system is emulated
as well and is not mapped to desktop's file system.

If you're using file explorer on the emulator, could you please describe
how exactly you're navigating to the emulator's root folder?

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRkE14P0uSfOuRmQNyl7qC28hJUhg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Wed, 7 Jul 2004 04:13:01 -0700
Lines: 145
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56772
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Sorry, I meant to tell you...

When I tried your suggestion of immediately creating another dataset and
trying to read the file just "created", as in:
Dim ds As DataSet = New DataSet

ds.WriteXml("\Foo.xml")
MsgBox("Just executed the WriteXML command")
Dim anotherDs = New DataSet

anotherDs.ReadXml ("\Foo.xml")

MsgBox("Just executed the ReadXML command")

it executes with no exceptions --- and no file. I've looked for the file
at all levels of the directory from which the app is running, both manually
and via Search. I already know where the app is READING the XML file from
and, since the path I give the writeXML function is exactly the same, it
seems the file should be there. If it is, though, it's invisible.
As posted earlier, a programmer at our corporate office tried to write
XML within both Windows CE and Pocket PC emulators and it worked. This is a
very frustrating mystery...
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


"Ilya Tumanov [MS]" said:
Could you please describe how exactly you're looking for a file?
I also wonder if you get an exception on attempt to load saved file...

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRju6KwGDQVK4dfRI6GvmgalEjZcg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Tue, 6 Jul 2004 17:45:01 -0700
Lines: 64
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56729
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I thought I might have the answer when I saw this in the emulator's
Help
file:
The following hardware and drivers are not supported in the Emulator:

Universal serial bus (USB) devices

PC Card devices

Storage devices, which include compact flash (CF) cards and hard disks

File system drivers, which include file allocation table (FAT),
compact
disc (CD), and digital video disc (DVD) drivers
IEEE 1394 devices

But when I had a couple of programmers at our corporate headquarters
try
on both a Windows CE and Pocket PC emulator, it worked for them.
What am I missing?
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Right now it's running on a Windows CE emulator and reading its
input
XML into the dataset from the path noted in the code I've provided (using
variable sPath). I'm simply trying to write the XML back out to the same
path using the ds.writeXML(fullPath) command.
The only reason rights are being mentioned at all is because we're
trying to figure out why the XML is not getting written back out. If I use
one of the sample code pieces from the VB .NET Resource Kit ("How To Write
An Offline Application") that runs under the full .NET Framework, it works
great, but when I move down into the Compact Framework, it won't write.
To reiterate, it throws no exceptions, but the file just isn't
there
--- anywhere --- when I look.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Wait a minute... Are you doing this on a Windows CE device or on the
desktop? If on the device, what Write Rights are you talking
about?
Windows
CE does not have filesystem permissions. Or perhaps you expect to find the
dataset xml written by the code on the device in your PC filesystem?
The
program
breezes right on through with no exceptions, but the file just
isn't
there!
There's data in the DataSet and I have write rights to the fullFilePath
specified.

What could be happening and how do I get around it?
 
Are you saying that even though I can READ the file into the dataset from the local hard drive's directory (which the emulator is mapping as \Program Files\Project\), I can't WRITE the file back to the same location?

So far, I haven't tried to find it inside the emulator and wasn't even aware that it was that functional. Guess it's worth a try, though.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


"Ilya Tumanov [MS]" said:
I'd say that's a concrete proof the file is saved.
Should file not be saved, you would get FileNotFound exception which you
had before on attempt to load file without proper path.
If you have doubts, you can add some data into the DataSet, save it, load
it again and see if data was actually loaded.

As to missing file, by any chance, are you trying to locate this file on
desktop's hard drive using desktop's search and explorer?
If so, you won't be able to find it as emulator's file system is emulated
as well and is not mapped to desktop's file system.

If you're using file explorer on the emulator, could you please describe
how exactly you're navigating to the emulator's root folder?

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRkE14P0uSfOuRmQNyl7qC28hJUhg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Wed, 7 Jul 2004 04:13:01 -0700
Lines: 145
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56772
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Sorry, I meant to tell you...

When I tried your suggestion of immediately creating another dataset and
trying to read the file just "created", as in:
Dim ds As DataSet = New DataSet

ds.WriteXml("\Foo.xml")
MsgBox("Just executed the WriteXML command")
Dim anotherDs = New DataSet

anotherDs.ReadXml ("\Foo.xml")

MsgBox("Just executed the ReadXML command")

it executes with no exceptions --- and no file. I've looked for the file
at all levels of the directory from which the app is running, both manually
and via Search. I already know where the app is READING the XML file from
and, since the path I give the writeXML function is exactly the same, it
seems the file should be there. If it is, though, it's invisible.
As posted earlier, a programmer at our corporate office tried to write
XML within both Windows CE and Pocket PC emulators and it worked. This is a
very frustrating mystery...
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


"Ilya Tumanov [MS]" said:
Could you please describe how exactly you're looking for a file?
I also wonder if you get an exception on attempt to load saved file...

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRju6KwGDQVK4dfRI6GvmgalEjZcg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Tue, 6 Jul 2004 17:45:01 -0700
Lines: 64
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:56729
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I thought I might have the answer when I saw this in the emulator's Help
file:

The following hardware and drivers are not supported in the Emulator:

Universal serial bus (USB) devices

PC Card devices

Storage devices, which include compact flash (CF) cards and hard disks

File system drivers, which include file allocation table (FAT), compact
disc (CD), and digital video disc (DVD) drivers

IEEE 1394 devices

But when I had a couple of programmers at our corporate headquarters try
on both a Windows CE and Pocket PC emulator, it worked for them.

What am I missing?
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Right now it's running on a Windows CE emulator and reading its input
XML into the dataset from the path noted in the code I've provided (using
variable sPath). I'm simply trying to write the XML back out to the same
path using the ds.writeXML(fullPath) command.

The only reason rights are being mentioned at all is because we're
trying to figure out why the XML is not getting written back out. If I use
one of the sample code pieces from the VB .NET Resource Kit ("How To Write
An Offline Application") that runs under the full .NET Framework, it works
great, but when I move down into the Compact Framework, it won't write.

To reiterate, it throws no exceptions, but the file just isn't there
--- anywhere --- when I look.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Wait a minute... Are you doing this on a Windows CE device or on the
desktop? If on the device, what Write Rights are you talking about?
Windows
CE does not have filesystem permissions. Or perhaps you expect to
find the
dataset xml written by the code on the device in your PC filesystem?

--
Alex Feinman
---
Visit http://www.opennetcf.org
I'm trying to write a DataSet back out to the same location it
reads in
from with readXML(fullFilePath), just to a different filename. The
program
breezes right on through with no exceptions, but the file just isn't
there!

There's data in the DataSet and I have write rights to the
fullFilePath
specified.

What could be happening and how do I get around it?
 
You can not read files into the dataset from local hard drive. Emulator has
no access to local hard drive at all and is unaware of its existence.
It's not mapping files on your hard drive to \Program Files\Project or to
any other folder for that matter.
Emulator's file system is independent from desktop's file system and
physically located in the desktop RAM (might be persisted onto hard drive
as an image).

Project files (including XML you're loading) are not mapped from your hard
drive onto emulator file system; they are copied into it on deployment.
If you delete or change file in project folder, its copy in the emulator
will remain unchanged (until redeployed).
If you save or change file inside emulator, it will stay inside emulator
and won't be accessible on desktop.

Consider real device isolated from desktop (i.e. disconnected).
Can you save files on this device? Sure. Can you use your desktop to see
them?
Not really. Emulator is very "real" in that sense, it's a separate entity.

You have to use emulator's file explorer to check emulator's file system,
using desktop explorer won't do you any good.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRkdUu5PLE0fNBeQP6gmT/xBO5kSA==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Wed, 7 Jul 2004 15:54:01 -0700
Lines: 232
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56843
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Are you saying that even though I can READ the file into the dataset from
the local hard drive's directory (which the emulator is mapping as \Program
Files\Project\), I can't WRITE the file back to the same location?
So far, I haven't tried to find it inside the emulator and wasn't even
aware that it was that functional. Guess it's worth a try, though.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


"Ilya Tumanov [MS]" said:
I'd say that's a concrete proof the file is saved.
Should file not be saved, you would get FileNotFound exception which you
had before on attempt to load file without proper path.
If you have doubts, you can add some data into the DataSet, save it, load
it again and see if data was actually loaded.

As to missing file, by any chance, are you trying to locate this file on
desktop's hard drive using desktop's search and explorer?
If so, you won't be able to find it as emulator's file system is emulated
as well and is not mapped to desktop's file system.

If you're using file explorer on the emulator, could you please describe
how exactly you're navigating to the emulator's root folder?

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRkE14P0uSfOuRmQNyl7qC28hJUhg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Wed, 7 Jul 2004 04:13:01 -0700
Lines: 145
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56772
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Sorry, I meant to tell you...

When I tried your suggestion of immediately creating another dataset
and
trying to read the file just "created", as in:
Dim ds As DataSet = New DataSet

ds.WriteXml("\Foo.xml")
MsgBox("Just executed the WriteXML command")
Dim anotherDs = New DataSet

anotherDs.ReadXml ("\Foo.xml")

MsgBox("Just executed the ReadXML command")

it executes with no exceptions --- and no file. I've looked for the
file
at all levels of the directory from which the app is running, both manually
and via Search. I already know where the app is READING the XML file from
and, since the path I give the writeXML function is exactly the same, it
seems the file should be there. If it is, though, it's invisible.
As posted earlier, a programmer at our corporate office tried to
write
XML within both Windows CE and Pocket PC emulators and it worked. This is a
very frustrating mystery...
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Could you please describe how exactly you're looking for a file?
I also wonder if you get an exception on attempt to load saved file...

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRju6KwGDQVK4dfRI6GvmgalEjZcg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Tue, 6 Jul 2004 17:45:01 -0700
Lines: 64
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:56729
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I thought I might have the answer when I saw this in the
emulator's
Help
file:

The following hardware and drivers are not supported in the Emulator:

Universal serial bus (USB) devices

PC Card devices

Storage devices, which include compact flash (CF) cards and hard disks

File system drivers, which include file allocation table (FAT), compact
disc (CD), and digital video disc (DVD) drivers

IEEE 1394 devices

But when I had a couple of programmers at our corporate
headquarters
try
on both a Windows CE and Pocket PC emulator, it worked for them.

What am I missing?
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Right now it's running on a Windows CE emulator and reading its input
XML into the dataset from the path noted in the code I've provided (using
variable sPath). I'm simply trying to write the XML back out to the same
path using the ds.writeXML(fullPath) command.

The only reason rights are being mentioned at all is because we're
trying to figure out why the XML is not getting written back out.
If I
use
one of the sample code pieces from the VB .NET Resource Kit ("How
To
Write
An Offline Application") that runs under the full .NET Framework,
it
works
great, but when I move down into the Compact Framework, it won't write.

To reiterate, it throws no exceptions, but the file just isn't there
--- anywhere --- when I look.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Wait a minute... Are you doing this on a Windows CE device or
on
the
desktop? If on the device, what Write Rights are you talking about?
Windows
CE does not have filesystem permissions. Or perhaps you expect to
find the
dataset xml written by the code on the device in your PC filesystem?

--
Alex Feinman
---
Visit http://www.opennetcf.org
I'm trying to write a DataSet back out to the same location it
reads in
from with readXML(fullFilePath), just to a different
filename.
The
program
breezes right on through with no exceptions, but the file
just
isn't
there!

There's data in the DataSet and I have write rights to the
fullFilePath
specified.

What could be happening and how do I get around it?
 
Please clarify one thing...
Are you saying that because I put the XML file into my project directory as content, it's being copied to the emulator (from my local directory, of course) and then being read from there? It makes perfect sense, if that's what you're saying.

Thank you so much for helping me understand.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


"Ilya Tumanov [MS]" said:
You can not read files into the dataset from local hard drive. Emulator has
no access to local hard drive at all and is unaware of its existence.
It's not mapping files on your hard drive to \Program Files\Project or to
any other folder for that matter.
Emulator's file system is independent from desktop's file system and
physically located in the desktop RAM (might be persisted onto hard drive
as an image).

Project files (including XML you're loading) are not mapped from your hard
drive onto emulator file system; they are copied into it on deployment.
If you delete or change file in project folder, its copy in the emulator
will remain unchanged (until redeployed).
If you save or change file inside emulator, it will stay inside emulator
and won't be accessible on desktop.

Consider real device isolated from desktop (i.e. disconnected).
Can you save files on this device? Sure. Can you use your desktop to see
them?
Not really. Emulator is very "real" in that sense, it's a separate entity.

You have to use emulator's file explorer to check emulator's file system,
using desktop explorer won't do you any good.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRkdUu5PLE0fNBeQP6gmT/xBO5kSA==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Wed, 7 Jul 2004 15:54:01 -0700
Lines: 232
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56843
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Are you saying that even though I can READ the file into the dataset from
the local hard drive's directory (which the emulator is mapping as \Program
Files\Project\), I can't WRITE the file back to the same location?
So far, I haven't tried to find it inside the emulator and wasn't even
aware that it was that functional. Guess it's worth a try, though.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


"Ilya Tumanov [MS]" said:
I'd say that's a concrete proof the file is saved.
Should file not be saved, you would get FileNotFound exception which you
had before on attempt to load file without proper path.
If you have doubts, you can add some data into the DataSet, save it, load
it again and see if data was actually loaded.

As to missing file, by any chance, are you trying to locate this file on
desktop's hard drive using desktop's search and explorer?
If so, you won't be able to find it as emulator's file system is emulated
as well and is not mapped to desktop's file system.

If you're using file explorer on the emulator, could you please describe
how exactly you're navigating to the emulator's root folder?

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRkE14P0uSfOuRmQNyl7qC28hJUhg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Wed, 7 Jul 2004 04:13:01 -0700
Lines: 145
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:56772
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Sorry, I meant to tell you...

When I tried your suggestion of immediately creating another dataset and
trying to read the file just "created", as in:

Dim ds As DataSet = New DataSet

ds.WriteXml("\Foo.xml")
MsgBox("Just executed the WriteXML command")
Dim anotherDs = New DataSet

anotherDs.ReadXml ("\Foo.xml")

MsgBox("Just executed the ReadXML command")

it executes with no exceptions --- and no file. I've looked for the file
at all levels of the directory from which the app is running, both manually
and via Search. I already know where the app is READING the XML file from
and, since the path I give the writeXML function is exactly the same, it
seems the file should be there. If it is, though, it's invisible.

As posted earlier, a programmer at our corporate office tried to write
XML within both Windows CE and Pocket PC emulators and it worked. This is a
very frustrating mystery...
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Could you please describe how exactly you're looking for a file?
I also wonder if you get an exception on attempt to load saved file...

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRju6KwGDQVK4dfRI6GvmgalEjZcg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Tue, 6 Jul 2004 17:45:01 -0700
Lines: 64
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:56729
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I thought I might have the answer when I saw this in the emulator's
Help
file:

The following hardware and drivers are not supported in the Emulator:

Universal serial bus (USB) devices

PC Card devices

Storage devices, which include compact flash (CF) cards and hard
disks

File system drivers, which include file allocation table (FAT),
compact
disc (CD), and digital video disc (DVD) drivers

IEEE 1394 devices

But when I had a couple of programmers at our corporate headquarters
try
on both a Windows CE and Pocket PC emulator, it worked for them.

What am I missing?
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Right now it's running on a Windows CE emulator and reading its
input
XML into the dataset from the path noted in the code I've provided
(using
variable sPath). I'm simply trying to write the XML back out to the
same
path using the ds.writeXML(fullPath) command.

The only reason rights are being mentioned at all is because we're
trying to figure out why the XML is not getting written back out. If I
use
one of the sample code pieces from the VB .NET Resource Kit ("How To
Write
An Offline Application") that runs under the full .NET Framework, it
works
great, but when I move down into the Compact Framework, it won't write.

To reiterate, it throws no exceptions, but the file just isn't
there
--- anywhere --- when I look.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Wait a minute... Are you doing this on a Windows CE device or on
the
desktop? If on the device, what Write Rights are you talking
about?
Windows
CE does not have filesystem permissions. Or perhaps you expect to
find the
dataset xml written by the code on the device in your PC
filesystem?

--
Alex Feinman
---
Visit http://www.opennetcf.org
I'm trying to write a DataSet back out to the same location it
reads in
from with readXML(fullFilePath), just to a different filename.
The
program
breezes right on through with no exceptions, but the file just
isn't
there!

There's data in the DataSet and I have write rights to the
fullFilePath
specified.

What could be happening and how do I get around it?
 
Correct, that's exactly what I'm saying.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRkgOQBF73v7XeNRme8T3oX0R+mIQ==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Wed, 7 Jul 2004 17:17:01 -0700
Lines: 339
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56856
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Please clarify one thing...
Are you saying that because I put the XML file into my project directory
as content, it's being copied to the emulator (from my local directory, of
course) and then being read from there? It makes perfect sense, if that's
what you're saying.
Thank you so much for helping me understand.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


"Ilya Tumanov [MS]" said:
You can not read files into the dataset from local hard drive. Emulator has
no access to local hard drive at all and is unaware of its existence.
It's not mapping files on your hard drive to \Program Files\Project or to
any other folder for that matter.
Emulator's file system is independent from desktop's file system and
physically located in the desktop RAM (might be persisted onto hard drive
as an image).

Project files (including XML you're loading) are not mapped from your hard
drive onto emulator file system; they are copied into it on deployment.
If you delete or change file in project folder, its copy in the emulator
will remain unchanged (until redeployed).
If you save or change file inside emulator, it will stay inside emulator
and won't be accessible on desktop.

Consider real device isolated from desktop (i.e. disconnected).
Can you save files on this device? Sure. Can you use your desktop to see
them?
Not really. Emulator is very "real" in that sense, it's a separate entity.

You have to use emulator's file explorer to check emulator's file system,
using desktop explorer won't do you any good.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRkdUu5PLE0fNBeQP6gmT/xBO5kSA==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Wed, 7 Jul 2004 15:54:01 -0700
Lines: 232
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56843
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Are you saying that even though I can READ the file into the dataset
from
the local hard drive's directory (which the emulator is mapping as \Program
Files\Project\), I can't WRITE the file back to the same location?
So far, I haven't tried to find it inside the emulator and wasn't
even
aware that it was that functional. Guess it's worth a try, though.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

I'd say that's a concrete proof the file is saved.
Should file not be saved, you would get FileNotFound exception
which
you
had before on attempt to load file without proper path.
If you have doubts, you can add some data into the DataSet, save
it,
load
it again and see if data was actually loaded.

As to missing file, by any chance, are you trying to locate this
file
on
desktop's hard drive using desktop's search and explorer?
If so, you won't be able to find it as emulator's file system is emulated
as well and is not mapped to desktop's file system.

If you're using file explorer on the emulator, could you please describe
how exactly you're navigating to the emulator's root folder?

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRkE14P0uSfOuRmQNyl7qC28hJUhg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Wed, 7 Jul 2004 04:13:01 -0700
Lines: 145
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:56772
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Sorry, I meant to tell you...

When I tried your suggestion of immediately creating another
dataset
and
trying to read the file just "created", as in:

Dim ds As DataSet = New DataSet

ds.WriteXml("\Foo.xml")
MsgBox("Just executed the WriteXML command")
Dim anotherDs = New DataSet

anotherDs.ReadXml ("\Foo.xml")

MsgBox("Just executed the ReadXML command")

it executes with no exceptions --- and no file. I've looked for
the
file
at all levels of the directory from which the app is running, both manually
and via Search. I already know where the app is READING the XML
file
from
and, since the path I give the writeXML function is exactly the
same,
it
seems the file should be there. If it is, though, it's invisible.

As posted earlier, a programmer at our corporate office tried to write
XML within both Windows CE and Pocket PC emulators and it worked.
This
is a
very frustrating mystery...
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Could you please describe how exactly you're looking for a file?
I also wonder if you get an exception on attempt to load saved file...

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
Thread-Topic: writeXML(fullFilePath) DOESN'T Write
thread-index: AcRju6KwGDQVK4dfRI6GvmgalEjZcg==
X-WBNR-Posting-Host: 68.220.90.130
From: =?Utf-8?B?QXJ0IENhYm90?= <[email protected]>
References:
<[email protected]>
<[email protected]>
Subject: Re: writeXML(fullFilePath) DOESN'T Write
Date: Tue, 6 Jul 2004 17:45:01 -0700
Lines: 64
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:56729
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

I thought I might have the answer when I saw this in the emulator's
Help
file:

The following hardware and drivers are not supported in the Emulator:

Universal serial bus (USB) devices

PC Card devices

Storage devices, which include compact flash (CF) cards and hard
disks

File system drivers, which include file allocation table (FAT),
compact
disc (CD), and digital video disc (DVD) drivers

IEEE 1394 devices

But when I had a couple of programmers at our corporate headquarters
try
on both a Windows CE and Pocket PC emulator, it worked for them.

What am I missing?
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Right now it's running on a Windows CE emulator and reading its
input
XML into the dataset from the path noted in the code I've provided
(using
variable sPath). I'm simply trying to write the XML back out to the
same
path using the ds.writeXML(fullPath) command.

The only reason rights are being mentioned at all is
because
we're
trying to figure out why the XML is not getting written back
out.
If I
use
one of the sample code pieces from the VB .NET Resource Kit
("How
To
Write
An Offline Application") that runs under the full .NET
Framework,
it
works
great, but when I move down into the Compact Framework, it
won't
write.
To reiterate, it throws no exceptions, but the file just isn't
there
--- anywhere --- when I look.
--
Art Cabot
Strickland Technical Services, Inc.
Augusta, Georgia


:

Wait a minute... Are you doing this on a Windows CE
device or
on
the
desktop? If on the device, what Write Rights are you talking
about?
Windows
CE does not have filesystem permissions. Or perhaps you expect to
find the
dataset xml written by the code on the device in your PC
filesystem?
location
it
reads in
from with readXML(fullFilePath), just to a different filename.
The
program
breezes right on through with no exceptions, but the file just
isn't
there!

There's data in the DataSet and I have write rights to the
fullFilePath
specified.

What could be happening and how do I get around it?
 
Back
Top