Trouble getting your ActiveSync provider to work with Windows Mobile Device Center?


As most of you know, ActiveSync has been replaced by a new app called Windows Mobile Device Center (WMDC) on Vista. I occasionally hear from developers who have problems getting their ActiveSync Sync Service Providers (SSPs) to work with WMDC. Usually its a registration issue and the error messages aren’t very helpful.


I have a fix that I’d like to share with developers facing such problems. It’s a very minor fix and has worked every single time I’ve suggested it to someone. Here’s what you need to do: In the SSP’s CLSID InprocServer32 regkey, add a string named “ThreadingModel” with the value “Apartment”.


That’s it. By doing this, in almost all cases your ActiveSync provider should work just fine with WMDC. Hope this little tip helps any developer struggling with WMDC issues.


-Mel

Comments (13)

  1. daniel_lidstrom says:

    Where are these registry keys found? I’m having trouble with a device that doesn’t work with WMDC on Vista, but I don’t know where to look for the registry key.

  2. MSDNArchive says:

    Hi Daniel,

    this blog post is for developers, not end-users. As a user, you shouldn’t have to touch any registry keys yourself.

  3. Thomas says:

    Excuese me.I have two questions.

    1st:

    I found a  trouble that the ActiveSync was always auto start background on my PPC device.

    How to turn off the auto start option?

    2nd:

    I try to use POOM to get the Contact’s IM,customer ID, Ring tone, Govt.ID,Account.

    But there is no methods provided by IContact to access these information.

    Need your help.

    Thanks!

  4. GON says:

    Yep. When I try to connect my phone with Active  Sync through Bluetooth, it tells me it couldn’t find a computer that supports Active Sync.

  5. Kyle says:

    I’m very curious about Windows Mobile’s compatibility with Linux distros, specifically Ubuntu.  I understand that Windows is a proprietary product, but I can’t do anything with my phone even when I use Wine, my Windows emulator.

    Will WMDC work on linux machines?  If not, is WM doing anything about this issue?

    Thank u

  6. steven pautz says:

    well I struggled with this all day and finally found this solution.  It solved my problem.  Can you explain why this fixes the issues?

  7. Jeffrey Adams says:

    This value was already entered. WMDC abomination still will not even finish starting with a fresh install – don’t you think it is way past time for mobile synching to work?????? Maybe in the next ten-years?????  I find it difficult to believe that you only hear about "occassional" problems when I have found in my experience that about 75% of the users that I deal with over the years have had mucho problems with Active Synch and now this thing. Simply changing the name doesn’t fix anything.

  8. John Holloway says:

    I want to sync an HP 2490 with my new PC running Vista – what a nightmare.

    Windows Mobile Device Centre will not pick it up.

    First it will not recignise the USB cradle

    2nd – I can connect the pc and the PDA via bluetooth – but WMDC will not regognise.

    It it the software for the PDA on the PC, or the version of software in the PDA, why wont it pick up the usb cradle

    would be nice to get some clues on this

    regards

    john h

  9. Lei Ma says:

    Thanks for your sharing. I think you may want to update the sample code which is released with windows mobile 6.0 SDK, because It doens’t create this key either.

    Thanks again.

  10. Paco says:

    Same with Gon, When I try to connect my phone with Active  Sync through Bluetooth, it tells me it couldn’t find a computer that supports Active Sync.

    I am windows server 2008 with Windows Mobile Device Center. Cannot find activesnyc service in bluetooth driver.

  11. vikas says:

    Hi

    i have htc touch mobile phone.which has windows 6.1 version.

    i find the active sync is always on in my phone even if i stop active sync after few minutes it is again running on my phone. i want to keep it off till the time i dont want it to be running. pls help me

  12. Rahul says:

    hi I set a password and locked my device but now forgot the device password. I cannot sync my O2 orbit XDA2 to my pc. I can do nothing. can some pls help as all important info is in the phone

  13. nil says:

    hi  whenever i try to connect my mobileto the computer thriugh active sync it says device not found wats the probl;em?