on 11-19-2011 12:08 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.