I have setup merge replication a lot when the computers are in the same network (even if they are not in the same physical location, but they are connected via VPN).
Well, now i have to setup merge replication over the web. I have done all of the steps (setting up IIS, publication, etc).
Now, i have setup the pull agent on the subscriber and when i start it the error shows that it can't pull the snapshot. The key thing is my subscriber and publisher have identical data - i backed up the data from the publisher and restored it on the subscriber before i started this process.
I know when i setup the merge replication for push it asks about initializing the subscription and i always answer that NO, because the subscriber already has the data. How do i do that with pull?
On the subscriber, i did:
exec sp_addmergepullsubscription_agent @publisher='publisher',@publisher_db='publisherDB',@publication='Publication1',@use_web_sync=1,@internet_url='the correct URL for replisapi.dll',@internet_security_mode=1,@internet_login='userlogin',@internet_password='password'
In the history on the subscriber i see it is applying scripts and all that looks fine (like it does on push merge). then i get:
2013-06-06 01:49:36.290 The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization
with verbose history logging and specify an output file to which to write.
2013-06-06 01:49:36.291 Category:NULL
Source: Merge Replication Provider
Number: -2147201001
Message: The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with verbose history
logging and specify an output file to which to write.
2013-06-06 01:49:36.291 Category:AGENT
Then i get duplicate key errors because it is trying copy data from the publisher to the subscriber. This is the step i want to skip because the data is already at the subscriber.
Thanks in advance.