Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

ultralite sync error c#

2 posts in Ultralite Last posting was on 2011-03-21 12:40:07.0Z
vasileiosk Posted on 2011-03-21 09:02:22.0Z
Reply-To: "vasileiosk" <vasileiosk@datatech.com.cy>
From: "vasileiosk" <vasileiosk@datatech.com.cy>
Newsgroups: sybase.public.sqlanywhere.ultralite
Subject: ultralite sync error c#
Lines: 39
Organization: dt
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-7"; reply-type=original
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft Windows Mail 6.0.6002.18005
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005
X-EsetScannerBuild: 8925
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4d87141e@forums-1-dub>
Date: 21 Mar 2011 01:02:22 -0800
X-Trace: forums-1-dub 1300698142 10.22.241.152 (21 Mar 2011 01:02:22 -0800)
X-Original-Trace: 21 Mar 2011 01:02:22 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sqlanywhere.ultralite:12423
Article PK: 1048195

greetings im kinda new in ultralite and i am experiencing a problem with the
ultralite sync

i have created an ultralite database with my mobilink 12 server and i have
downloaded in the my windows mobile 6.1 handheld. i have created a
c# .net app and i have checked the version of my running server and of the
ianywhere ultralite dll on my handheld and both are 12.0.0.2483.
i runt he following simple code to perform sync

iAnywhere.Data.UltraLite.ULConnection conn = new ULConnection(@"dbf=My
Documents\mdatabase_remote.udb;UID=dba;PWD=sql");
conn.Open();
conn.SyncParms.Version = "Version3";
conn.SyncParms.StreamParms = "";
conn.SyncParms.Stream = ULStreamType.TCPIP;
conn.SyncParms.UserName = "thanasisg";
conn.SyncParms.StreamParms = "host=192.168.200.39;port=2439";
conn.SyncParms.Password = "123";
conn.Synchronize();

i get the error on the client
Synchronization failed due to an error on the server: [-10244] The MobiLink
server has encountered an error and the synchro

on the server i see a diffrent message saying
E. 2011-03-21 10:59:39. <2> [-10004] Protocol version mismatch -- expecting
49 but received 65
I. 2011-03-21 10:59:39. <2> failed reading command with id:1 and
handle:10000
I. 2011-03-21 10:59:39. <2> Synchronization failed

i use tcpip for the communication and the dll and server versions are the
same, what is going wrong?

the server i created it for my sqlanywhere client, i can sync with my
sqlanywhere client, but i wanted to try my ultralite. the same server works
for ultralite and sql anywhere right?
thks


Chris Keating (Sybase, an SAP Company) Posted on 2011-03-21 12:40:07.0Z
From: "Chris Keating (Sybase, an SAP Company)" <last_name@sybase.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
MIME-Version: 1.0
Newsgroups: sybase.public.sqlanywhere.ultralite
Subject: Re: ultralite sync error c#
References: <4d87141e@forums-1-dub>
In-Reply-To: <4d87141e@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-7; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4d874727$1@forums-1-dub>
Date: 21 Mar 2011 04:40:07 -0800
X-Trace: forums-1-dub 1300711207 10.22.241.152 (21 Mar 2011 04:40:07 -0800)
X-Original-Trace: 21 Mar 2011 04:40:07 -0800, vip152.sybase.com
Lines: 48
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sqlanywhere.ultralite:12424
Article PK: 1048191

This protocol error is reported when the client and server software are
of different versions. This specific protocol error occurs when the
versions are a mix of 12.0.0 and 12.0.1 software. Please double check
for mismatches in the software.

-chris

On 3/21/2011 5:02 AM, vasileiosk wrote:
> greetings im kinda new in ultralite and i am experiencing a problem with
> the ultralite sync
>
> i have created an ultralite database with my mobilink 12 server and i
> have downloaded in the my windows mobile 6.1 handheld. i have created a
> c# .net app and i have checked the version of my running server and of
> the ianywhere ultralite dll on my handheld and both are 12.0.0.2483.
> i runt he following simple code to perform sync
>
> iAnywhere.Data.UltraLite.ULConnection conn = new ULConnection(@"dbf=My
> Documents\mdatabase_remote.udb;UID=dba;PWD=sql");
> conn.Open();
> conn.SyncParms.Version = "Version3";
> conn.SyncParms.StreamParms = "";
> conn.SyncParms.Stream = ULStreamType.TCPIP;
> conn.SyncParms.UserName = "thanasisg";
> conn.SyncParms.StreamParms = "host=192.168.200.39;port=2439";
> conn.SyncParms.Password = "123";
> conn.Synchronize();
>
> i get the error on the client
> Synchronization failed due to an error on the server: [-10244] The
> MobiLink server has encountered an error and the synchro
>
> on the server i see a diffrent message saying
> E. 2011-03-21 10:59:39. <2> [-10004] Protocol version mismatch --
> expecting 49 but received 65
> I. 2011-03-21 10:59:39. <2> failed reading command with id:1 and
> handle:10000
> I. 2011-03-21 10:59:39. <2> Synchronization failed
>
> i use tcpip for the communication and the dll and server versions are
> the same, what is going wrong?
>
> the server i created it for my sqlanywhere client, i can sync with my
> sqlanywhere client, but i wanted to try my ultralite. the same server
> works for ultralite and sql anywhere right?
> thks