locked
Active Sync Partnership gets Lost on Hard Reset of MC1000 Device RRS feed

  • Question

  • Hi,
             We have one of our applications running on MC1000 Device(.NET Compact Framework). After the hard reset Active Sync always prompts for a New partnership wizard. Is there a programmatic soultion by which the Active Sync remembers the previous partnership after performing the hard reset.
    Monday, October 5, 2009 7:30 PM

Answers

  • MC1000 is a Windows CE device and does not have persistent store like Windows Mobile devices. In a WinCE device, partnership information is maintained in registry which resides on RAM. A hard-reset clears all RAM contents. That's why partnership data is also lost.

    Suggestion:

    Once you have setup partnership between MC1000 and the PC, you can backup the registry information related to partnership and keep them in \Application or \Platform folders on the MC1000. See the following article to determine which registry data on the handheld should be backed up.

    http://www.hpcfactor.com/support/cesd/c/0027.asp

    \Application and \Platform folders on MC1000 are maintained on a NOR flash memory which retains contents across hard-resets. You can keep the partnership related registry files (from above article) in the root location on either of these folders. During a hard-reset (or cold boot), those reg files will be merged with the system registry. By the time ActiveSync starts, partnership information will be there.

    I hope this helps.

    - Onkar

    http://www.42gears.com
    [SureLock Studio: Locks down Enterprise Windows Mobile devices]
    • Marked as answer by warrentang Monday, October 12, 2009 2:23 AM
    Tuesday, October 6, 2009 5:01 AM

All replies

  • MC1000 is a Windows CE device and does not have persistent store like Windows Mobile devices. In a WinCE device, partnership information is maintained in registry which resides on RAM. A hard-reset clears all RAM contents. That's why partnership data is also lost.

    Suggestion:

    Once you have setup partnership between MC1000 and the PC, you can backup the registry information related to partnership and keep them in \Application or \Platform folders on the MC1000. See the following article to determine which registry data on the handheld should be backed up.

    http://www.hpcfactor.com/support/cesd/c/0027.asp

    \Application and \Platform folders on MC1000 are maintained on a NOR flash memory which retains contents across hard-resets. You can keep the partnership related registry files (from above article) in the root location on either of these folders. During a hard-reset (or cold boot), those reg files will be merged with the system registry. By the time ActiveSync starts, partnership information will be there.

    I hope this helps.

    - Onkar

    http://www.42gears.com
    [SureLock Studio: Locks down Enterprise Windows Mobile devices]
    • Marked as answer by warrentang Monday, October 12, 2009 2:23 AM
    Tuesday, October 6, 2009 5:01 AM
  • Hi Onkar,
     Thanks for the reply. Can you please tell if it is pro grammatically possible in C#.NET to restore this partnership information
    Tuesday, October 6, 2009 1:03 PM
  • There is no API or method which can directly restore the partnership information. Although all of what I suggested can be done programmatically, just like a normal application programming. But before going that route, try it manually to ensure it works.

    What is MC1000 running on? CE 4.2 or CE 5.0?

    - Onkar
    http://www.42gears.com
    [SureLock Studio: Locks down Enterprise Windows Mobile devices]
    Tuesday, October 6, 2009 4:05 PM
  • It is running on CE 5.0
    Tuesday, October 6, 2009 4:30 PM
  • After a hard-reset, your application will also be lost. How do you plan to run it after the hard-reset? I can only think of using  \Application and \Platform folders.

    - Onkar

    http://www.42gears.com
    [SureLock Studio: Locks down Enterprise Windows Mobile devices]
    Wednesday, October 7, 2009 10:16 AM
  • Hi Onkar,
    We have our application installed in \Application. I tried maintaining the partnership information by backing up the Handheld registry. It does retain the partnership information during cold boot. i.e. now i dont get the new partnership wizard on hard reset. However one issue i noticed is that the data of the Synchronized folder doesnt get retained after the cold boot.It deletes all the data of Synchronized folder and sends it to recycle bin. How can i maintain the data of the Synchronized folders as well.
    Friday, October 9, 2009 7:09 PM