The Log Files
The .NET Compact Framework runtime version 2.0 can create diagnostic text files on the target while your application is running. These log files contain information that can help debug four areas: loading, interop, networking, and error.
Before looking at each area, you must enable logging globally through the registry on the device. Use Remote Registry Editor or some other device registry editing tool of your choice.
Navigate to HKLM\Software\Microsoft\.NETCompactFramework\. If it doesn't exist, create a key named Diagnostics. Under that key, create a key named Logging.
Under the Logging key, create a new DWORD value: Enabled. Set it to 1. Logging is now enabled.
Optionally, create three additional DWORD values (described later) as ...