Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File not found
Message
 
To
All
General information
Forum:
ASP.NET
Category:
XML
Title:
File not found
Miscellaneous
Thread ID:
00890595
Message ID:
00890595
Views:
56
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
Doru
Next
Reply
Map
View

Click here to load this message in the networking platform