Prashanth,

I haven't had a chance to play with the .NET compact framework, but in
Embedded Visual C++ 3.0, each emulator had its own directory structure on
the hard disk that simulated the directory structure you would find on the
target device.  This allowed you to place configuration files, etc on your
hard disk and simulate accessing these files in the emulator.  I don't
believe the emulator lets you get at files outside of this structure.  For
instance, accessing d:\temp\mysettings.cfg would not be allowed.  This
might explain the exception you are getting.

If they kept this concept the same in the .NET compact framework, try
finding the directory that the emulator is running in and look for the
simulated directory structure something like the following (I am recalling
this from memory so I may be a bit off).

SomeEmulator
      Temp <You could start by placing your files here>
      Start Menu
      Windows

HTH

Todd



|---------+---------------------------->
|         |           PrashanthG       |
|         |           <PrashanthG@INFOS|
|         |           YS.COM>          |
|         |           Sent by: The     |
|         |           DOTNET list will |
|         |           be retired 7/1/02|
|         |           <[EMAIL PROTECTED]|
|         |           EVELOP.COM>      |
|         |                            |
|         |                            |
|         |           06/04/2002 09:44 |
|         |           AM               |
|         |           Please respond to|
|         |           The DOTNET list  |
|         |           will be retired  |
|         |           7/1/02           |
|         |                            |
|---------+---------------------------->
  
>--------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                      |
  |       To:       [EMAIL PROTECTED]                                         
                                      |
  |       cc:                                                                          
                                      |
  |       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.

Reply via email to