We are synchronizing SQL Server CE with SQL Server 2008 R2.
There are two different publications we need to synchronize, and we call them each in sequence.
This is a (greatly abbreviated) sample of what we are doing.
System.Data.SqlServerCe.SqlCeReplication repPub1;
repPub1.Synchronize();
System.Data.SqlServerCe.SqlCeReplication repPub2;
repPub2.Synchronize();
99% of the time, the first publication runs, then the second.
However, 1% of the time, the first publication finishes, according to the replication monitor, but not as far as C# is concerned, so we sit and wait indefinitely on the repPub1.Synchronize();
step, and the second publication never starts. The only thing we can do is have the user terminate and start over when they get tired of waiting.
Has anyone seen this before? Anyone know how to make this more fail safe?
Suggestion?
Thanks