on 09-24-2011 1:58 PM
hello experts,
i have developed sample application using sup 2.0
the application works fine for windows
I am using windows xp sp3
i refer all the dll required for the application
i also configure Active sync 4.5 and Virtual machine 2007 SP1 for windows mobile 6.0 professional emulator
but when i create application for windows mobile
it throw error at
LoginToSync("supAdmin","s3pAdmin");
as
iAnywhere.Data.UltraLite.ULException: Communication error
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 TestMobile.TestMobileDB.Synchronize(String synchronizationGroup, SyncStatusListener listener)
at TestMobile.TestMobileDB.InitialSync()
at TestMobile.TestMobileDB.LoginToSync(String username, String password)
at SMATestMobile.Form1.btnContact_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
at System.Windows.Forms.Application.Run(Form fm)
at SMATestMobile.Program.Main()
Details:
StreamErrorCode =SOCKET_CONNECT
StreamErrorSystem = 10060
StreamErrorParameters =
Regards,
Rahul
well
i have solve the problem.
we have to give ip address instead of server name.
TestMobileDB.GetSynchronizationProfile().ServerName = "ip address";
TestMobileDB.GetSynchronizationProfile().PortNumber = 2480;
TestMobileDB.LoginToSync("supAdmin", "s3pAdmin");
thanks anyway.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
change the ActiveSync connection setting to accept DMA connection at the following:
ActiveSync menu -> connection setting -> tick allow connections to one of the following: -> choose DMA
Visual studio emulator will connected to the activesync when cradle and you should able to sync the database.
Try it out.
Best Regards
Choong
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.