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.

  1. Navigate to HKLM\Software\Microsoft\.NETCompactFramework\. If it doesn't exist, create a key named Diagnostics. Under that key, create a key named Logging.

  2. Under the Logging key, create a new DWORD value: Enabled. Set it to 1. Logging is now enabled.

  3. Optionally, create three additional DWORD values (described later) as ...

Get Microsoft® Mobile Development Handbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.