Re: pocket pc emulator

From: e-mid (someone_at_somewhere)
Date: 07/05/04


Date: Mon, 5 Jul 2004 13:22:15 +0300

Maarten,
i added the xml file to project as you said, and checked to see if the
"content" is set.

then i tried following ;

xr.load("foo.xml");
Console.WriteLine("Loaded..");

but i got FileNotFound exception..

and with full path

xr.load("\projects\smartDeviceApplication1\foo.xml");

this time i got directoryNotFound exception..

what would be wrong here?

"Maarten Struys, eMVP" <maarten.struys@nospam.pts.nl> wrote in message
news:uH%23QyXnYEHA.3972@TK2MSFTNGP12.phx.gbl...
> Is the file deployed to your device? Or do you have it in the same
directory
> on your develop machine only. If the latter is true, you can deploy it
with
> your application by adding the particular file to your project: Right
click
> the project in solution explorer - Add - Add existing item. In the dialog
> add the text file you want to use. Make sure its properties are set to
> content. Now the text file will be deployed to your device and will be
> stored in the same folder as the application and you should be able to
open
> the file. If you have already done this and it is not working, you might
> want to share the code you are using to open the file so we can help you
> further.
>
> --
> Maarten Struys, eMVP
> PTS Software bv
>
> www.opennetcf.org | www.dotnetfordevices.com
>
>
>
> "e-mid" <someone@somewhere> wrote in message
> news:uOBtQ9mYEHA.3680@TK2MSFTNGP10.phx.gbl...
> > a text file or an xml file, it doesnt matter. i got FileNotFound
> exception.
> > file is in the same directory with the exe file. i tried giving the full
> > path of the file but it does not work too.
> >
> > thnkz..
> >
> > "Maarten Struys, eMVP" <maarten.struys@nospam.pts.nl> wrote in message
> > news:%23$Uzj3mYEHA.716@TK2MSFTNGP11.phx.gbl...
> > > What files do you want to read? Can you be a little more specific
about
> > > that?
> > >
> > > --
> > > Maarten Struys, eMVP
> > > PTS Software bv
> > >
> > > www.opennetcf.org | www.dotnetfordevices.com
> > >
> > > "e-mid" <someone@somewhere> wrote in message
> > > news:%23BkuwkmYEHA.2812@TK2MSFTNGP11.phx.gbl...
> > > > hello all,
> > > > i am new to programming pocket pc. when i deploy my project on
> emulator.
> > > > first it is loading framework dlls then, launchs my project on
> emulator.
> > > But
> > > > i am not able to read files. do i have to load these files into
> emulator
> > > > manually to read them. or is there any other way?
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: pocket pc emulator
    ... > i added the xml file to project as you said, and checked to see if the ... > this time i got directoryNotFound exception.. ... >> emulator. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: pocket pc emulator
    ... > i added the xml file to project as you said, and checked to see if the ... > this time i got directoryNotFound exception.. ... > "Maarten Struys, ... >> emulator. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: writeXML(fullFilePath) DOESNT Write
    ... I also wonder if you get an exception on attempt to load saved file... ... > The following hardware and drivers are not supported in the Emulator: ... > File system drivers, which include file allocation table, compact ... XML into the dataset from the path noted in the code I've provided (using ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: default namespace / Xmlvalidatingreader
    ... You dont get an exception in the case of the second file, ... validation warning should be thrown. ... XmlReader readerToUse = validatingReader; ...
    (microsoft.public.dotnet.xml)
  • Re: XmlValidatingReader / Default Namespace
    ... You dont get an exception in the case of the second file, ... validation warning should be thrown. ... XmlReader readerToUse = validatingReader; ...
    (microsoft.public.dotnet.xml)