Windows Embedded CE resolves a file name that is specified without path information as being in the root directory of the device, not in the application directory. To ensure successful operations, specify absolute path information.
The .NET Compact Framework processes Uniform Resource Identifier (URI) strings prefixed by file:// differently from the full .NET Framework. A relative specification such as file://myfile resolves as \\myfile. The URI string file:///myfile (with three forward slashes) resolves as \myfile in the root directory.
You can get the version of an assembly with the Version property, but its support depends on the manufacturer of the device and cannot be guaranteed.
To get the name of the directory that contains an application, see How to: Get the Application Directory.