ActiveSync AutoConnect Feature Missing from Windows CE .NET 4.1 (328450)



The information in this article applies to:

  • Microsoft Windows CE .NET Operating System 4.1

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:

  1. 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 : <db name> : <type in hex> : <num sort orders> : <sort order specifier 1> ...
    ; 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.  <hex propid> : <hex flags>
    ;     This describes a sort order on a single property.
    ; 2.  [ <num sort properties> : <hex propid 1> : <hex flags 1> ... ]
    ;     This describes a sort order on one or more (up to 3) properties.  Note that
    ;     "[ 1 : <hex propid> : <hex flags> ]" is equivalent to "<hex propid> : <hex flags>"
    ;
    ; So an example Database specifier might be:
    ; Database : "MyDatabase" : 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 : <hex propid> : <value> [ either string or hex dword ]
    ;
    ; End   (ends a matching database or a record context)
    
    
    Database: "DB_notify_events" : 0 : 1 : 0001001F : 0
    
    ; @CESYSGEN IF DATASYNC_MODULES_REPLLOG
    Record :
    Field : 0001001f : "repllog.exe"
    Field : 0002001f : "AppRunAtRs232Detect"
    Field : 00030013 : 9
    End
    ; @CESYSGEN ENDIF
    
    End Database
    					
  2. Save the file as Datasync.db in the following directory:

    WinCE410\Public\Datasync\Oak\Files

  3. Do a clean build of your image.

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

Modification Type:MinorLast Reviewed:12/27/2003
Keywords:kbprb KB328450