This content has been marked as final. Show 2 replies
Two things that are important to understand about opening a replica database:
1. You cannot create the replica database when you open it because replication will create it for you.
2. You need to poll or wait until the database has been replicated from the master to the replica before the database open can succeed.
Certainly the code you added from RepQuoteExample.cs is a valid way to do these things, so I'm glad it works with your application.
I'm not sure why you were seeing this problem on C# but not C++. I'm not very familiar with C# and we would probably need to know more about your application to figure it out.
Thank you very much for useful information.