cancel
Showing results for 
Search instead for 
Did you mean: 

Communication error in login function in windows mobile in sup 2.0

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

HI Rahul,

I am facing same problem.

I tried with your solution still i am getting same error. Could you please help me on this issue.

Best Regards,

Harish.Y

Former Member
0 Kudos

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