Its because the code is being run in the emulator - which for all intents and purposes is a separate machine, and cannot communicate with your PC except through the normal means any other pocket device can (i.e. ActiveSync, etc)
Just copy your XML file to the file system on the emulator. --b Bryan Batchelder eBusiness Consultant ConnectWise, Inc. 813-935-7100 x 425 > -----Original Message----- > From: PrashanthG [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 04, 2002 9:45 AM > To: [EMAIL PROTECTED] > Subject: [DOTNET] DirectoryNotFound Exception > > > Hi, > I am developing a small Prototype in .Net Compact Framework > targeting Pocket PC 2002 using .Net CE Beta1. In the > application I am reading an xml configuration file present on > my local hard disk. But this throws an exception > DirectoryNotFound. I am using Emulator for testing. Is it > something that the Emulator will not be able to read the File > system on desktop, since the code will be getting executed in > the Emulator or because of some other issue? > > I tried all possible ways but I am ending up same exception. > Can anybody help me out on this? > > Thanks in Advance. > Prashanth G > > You can read messages from the DOTNET archive, unsubscribe > from DOTNET, or subscribe to other DevelopMentor lists at > http://discuss.develop.com. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.