I am getting the error:
Unable to obtain a new server anchor. Make sure that you can establish a connection to the server database and that the SelectNewAnchorCommand property of the DbServerSyncProvider is specified correctly.
This occurs while synchronizing SQL Server DB with Compact DB in Windows Mobile at this line:
Dim syncStats As Microsoft.Synchronization.Data.SyncStatistics = syncAgent.Synchronize()
My problem has been sort out. I was not using sql 2008 and mine replicated compact DB was created from SQL Server 2008.Also the schema of Dbs were not correct.
Now the synchronization is done between sql server and compact DB.