cancel
Showing results for 
Search instead for 
Did you mean: 

Native Windows mobile code for SUP 2.0

Former Member
0 Kudos

Hi,

i am new to windows mobile coding. As told in the sybase devlopment guide when i set and do a LoginToSync(username,password); i get an error Sunchronisation exception was unhandled in customerDB.cs file generated by Sybase.

Am i missing something.?

iAnywhere.Data.UltraLite.ULException: SQLE_INVALID_LOGON

at iAnywhere.Data.UltraLite.ULConnection.RuntimeError(IntPtr natKey, ULSQLCode code, Object p0, Object p1, Object p2)

at iAnywhere.Data.UltraLite.ULConnection.RuntimeError(ULSQLCode code)

at iAnywhere.Data.UltraLite.ULConnection.Synchronize()

at com.sybase.afx.db.ConnectionUtil.Synchronize(ConnectionWrapper dbConn, SyncStatusListener listener, Connection connection, String[] mboNames, Hashtable tableMBOMap)

at com.sybase.afx.db.ConnectionUtil.Synchronize(ConnectionWrapper dbConn)

at cust.CustDB.Synchronize(String synchronizationGroup, SyncStatusListener listener)

at cust.CustDB.InitialSync()

at cust.CustDB.LoginToSync(String username, String password)

at SmartDeviceProject4.Form1..ctor()

at SmartDeviceProject4.Program.Main()

do we have any sample code so that i can get an idea of how to do it.

Regards,

Vivek

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi VivekJosep,

The reason why it is failing is that it is unable to establish connection with the Unwired Server.So, in order to do that, create and Application connection in SCC (i.e. Sybase Control Center) and make sure to give the correct information especially the port number as port numbers differ for RBS and MBS apps.

Also, debug into the generated code and check if you are getting the correct server name and port number.

Former Member
0 Kudos

Hi all,

Appneding the code i used in the constructor of the first form.

InitializeComponent();

ConnectionProfile profile=CustDB.GetSynchronizationProfile();

profile.ServerName = "ip-addr/system name";

profile.PortNumber = 2480;

profile.Save();

MyCallbackHandler callback = new MyCallbackHandler();

CustDB.LoginToSync("supAdmin", "s3pAdmin");

CustDB.Subscribe();

I am trying to get data from backend and display it on a list int this screen.

Regards,

Vivek