Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File not found
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
File not found
Divers
Thread ID:
00890595
Message ID:
00890595
Vues:
55
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform