Quantcast
Channel: SCN : Popular Discussions - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 1302

ultralite DB and sql anywhere 16 DB, mobilink synchronization using Dot Net API

$
0
0

I have ultralite DB as remote database and sql anywhere 16 as consolidated database. I am trying to synchronize data between them though Dot Net.

 

I have created mobilink project and tested the project. It is working fine. But i am trying to do it through dot net API. There i am getting one exception

 

"Could not Load the synchronization profile".  The following line of code i am using.

 

 

 

private void button3_Click(object sender, EventArgs e)

        {

            SynchronizeDB("C:\\Program Files\\SQL Anywhere 16\\Bin32", "DBA", "sql", "DBA", "sql", "MyProfile", 2439);

        }

 

static void SynchronizeDB(string serverPath, string user, string pwd, string cuser, string cpwd, string syncName, int port)

        {

 

 

 

               DbmlsyncClient cli1;

               DBSC_StartType st1;

               DBSC_Event ev1;

               UInt32 syncHd;

  

               cli1 = DbmlsyncClient.InstantiateClient();

               cli1.Init();

 

                cli1.SetProperty("server path", serverPath);

 

                cli1.StartServer( port,  "-v -c DSN=SourceDSN;UID=DBA;pwd=sql",  5000,  out st1);

                cli1.Connect("", port, cuser, cpwd);

                yncHdl = cli1.Sync(syncName, "");-------At this point i am getting exception" Could not load the synchronization profile "MyProfile".

           }

 

Myprofile is the synchronization profile which is developed in the remote database using mobilink.

 

Can any body help me to resolve the above issue.


Viewing all articles
Browse latest Browse all 1302

Trending Articles