Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The current operation could not be completed because the database is not provisioned for sync or you not have permissions to the sync configuration tables.
There is a code that

class Program
{
static void Main(string[] args)
{
// create a connection to the SyncExpressDB database
SqlConnection clientConn = new SqlConnection("Data Source=PSC-I3-PC; Initial Catalog=SyncExpressDB; User ID=sa;Password=123456; Integrated Security=True");

// create a connection to the SyncDB server database
SqlConnection serverConn = new SqlConnection("Data Source=PSC-I3-PC; Initial Catalog=SyncDB; User ID=sa;Password=123456; Integrated Security=True");

// get the description of ProductsScope from the SyncDB server database
DbSyncScopeDescription scopeDesc = SqlSyncDescriptionBuilder.GetDescriptionForScope("SyncDB", serverConn); // at this point error is pointing

// create server provisioning object based on the ProductsScope
SqlSyncScopeProvisioning clientProvision = new SqlSyncScopeProvisioning(clientConn, scopeDesc);

// starts the provisioning process
clientProvision.Apply();
}
}
Posted
Comments
ZurdoDev 1-Mar-14 7:52am    
Do a google search on the error. Either you haven't configured it right or it is a permissions issue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900