Try putting the files in the debug directory under the bin directory. They should be found then with no problem.
~~Bonnie
>I'm trying to read (then write to, if I could read first...) an XML in a simple SDE form. When running the emulator I get the unhandled exception error filenotfound... I've put the .xml/.xsd files in the same dir with the app, or under bin directory, I even included them in the project. Nothing helps...
>Here is my code:
>
>DataSet ds = new DataSet("myDS");
>
>ds.ReadXmlSchema("myXsd.xsd");
>ds.ReadXml("myXml.xml"); && "file not found..." on this line
>
>* will not compile "The type or namespace 'Server' could not be found..."
>ds.ReadXmlSchema(Server.MapPath("myXsd.xsd"));
>ds.ReadXml(Server.MapPath("myXml.xml"));
>
>
>I am amazed (again) at the level of confusion in .NET. Reading from or writing to an XML must be the most basic thing to do in a mobile app. There are snippets of code scattered in hundred of places in the help, but none of them is a complete example that works.
>
>Can somebody help?
>TIA