Microsoft KB Archive/328450

= ActiveSync AutoConnect Feature Missing from Windows CE .NET 4.1 =

Article ID: 328450

Article Last Modified on 12/27/2003

-

APPLIES TO


 * Microsoft Windows CE .NET

-



This article was previously published under Q328450



SYMPTOMS
If Windows CE. Net 4.1 is used to build an image that includes ActiveSync, ActiveSync does not autoconnect after the image starts.



CAUSE
The Datasync.db file is not in the following directory:

WinCE410\Public\Datasync\Oak\Files



RESOLUTION
To resolve this problem, follow these steps:

  Open a text editor (such as Notepad), and copy the following code into a new (blank) document. ; This is the database initialization file. Format is as follows:
 * Database : : : : ...
 * This describes a database with one or more (up to 4) sort orders.
 * A sort order specifier may be described in one of two ways:
 * 1. :
 * This describes a sort order on a single property.
 * 2. [ : : ... ]
 * This describes a sort order on one or more (up to 3) properties. Note that
 * &quot;[ 1 : : ]&quot; is equivalent to &quot; : &quot;
 * So an example Database specifier might be:
 * Database : &quot;MyDatabase&quot; : 0
 * : 4 : 0001001F : 0
 * : [ 3 : 0002001F : 0 : 0003001F : 0 : 0004001F : 0]
 * : 0003001F : 0
 * : [ 1 : 0004001F : 0 ]
 * which describes a database with four sort orders, one of which is sorted on
 * three properties.
 * A database specifier can be followed by any number of record specifiers
 * Record :
 * A record specifier can be followed by one or more field specifiers
 * Field : : [ either string or hex dword ]
 * End  (ends a matching database or a record context)
 * Record :
 * A record specifier can be followed by one or more field specifiers
 * Field : : [ either string or hex dword ]
 * End  (ends a matching database or a record context)
 * End  (ends a matching database or a record context)
 * End  (ends a matching database or a record context)

Database: &quot;DB_notify_events&quot; : 0 : 1 : 0001001F : 0

Record : Field : 0001001f : &quot;repllog.exe&quot; Field : 0002001f : &quot;AppRunAtRs232Detect&quot; Field : 00030013 : 9 End
 * @CESYSGEN IF DATASYNC_MODULES_REPLLOG
 * @CESYSGEN ENDIF

End Database  Save the file as Datasync.db in the following directory:

WinCE410\Public\Datasync\Oak\Files

 Do a clean build of your image.

After you add this file to your Windows CE .NET image, ActiveSync connects automatically.

Keywords: kbprb KB328450

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.