Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File not found
Message
From
30/03/2004 09:57:05
 
General information
Forum:
ASP.NET
Category:
XML
Title:
Miscellaneous
Thread ID:
00890595
Message ID:
00890769
Views:
22
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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform