SQLCE Exception during .AddSubscription
-
during the call to SqlCeReplication's Addsubscription, an error occurs that says: An unhandled exception of type 'System.Data.SqlServerCe.SqlCeException' occurred in System.Data.SqlServerCe.dll Additional information: SqlCeException here's my code snippet: .InternetUrl = "http://" & txtDBServer.Text & "/" & txtDBName.Text & "/sscesa10.DLL" .InternetLogin = "" .InternetPassword = "" .PublisherNetwork = NetworkType.DefaultNetwork .Publisher = txtDBServer.Text .PublisherDatabase = txtDBName.Text .PublisherLogin = txtUsername.Text .PublisherPassword = txtPassword.Text .Publication = txtDBName.Text .PublisherSecurityMode = SecurityType.DBAuthentication .SubscriberConnectionString = "data source=C:\" & txtDBName.Text & ".sdf" .Subscriber = txtDBName.Text .AddSubscription(AddOption.CreateDatabase) .Synchronize()