Home > Archive > SQL Anywhere Mobile > August 2005 > Sync Problems C#









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Sync Problems C#
Mabel

2005-08-30, 8:28 pm

We are developing an application in. NET (c # whit
iAnywhere.Ultralite namepaces) Using a base in the desk
computer. db and a base for pocket pc. udb and one doesn't
eat to synchronize the data of the base from the PC to the
base of the pocket. We are despaired then this it is the
basic part of the application and without her we cannot
advance. Thank you to help us
Our iAnywhere version build is 9.0.2.2451.

Here's the code I'm using to synchronize:
string
_hostname=3d"localhost"; _conn.SyncParms.UserName=3d"DBA";
_conn.SyncParms.Password=3d"sql";
_conn.SyncParms.Stream =3dStreamType.TCPIP;
_conn.SyncParms. StreamParms=3d=94hos
t=94+_hostname;
_conn.SyncParms.Version=3d"bien_mueble";
_conn.Synchronize();
But, no synchronize.
Error
SQLException:Comunic
ation Error
Reg Domaratzki \(iAnywhere Solutions\)

2005-08-31, 9:30 am

Your StreamParms property should read "host=localhost", but from your code
it looks like you are setting it to "hostlocalhost".

--
Reg Domaratzki, Sybase iAnywhere Solutions
Sybase Certified Professional - Sybase ASA Developer Version 8
Please reply only to the newsgroup

iAnywhere Developer Community : http://www.ianywhere.com/developer
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
ASA Patches and EBFs : http://downloads.sybase.com/swx/sdmain.stm
-> Choose SQL Anywhere Studio
-> Set filter to "Display ALL platforms IN ALL MONTHS"


<Mabel> wrote in message news:4314cfa0.782c.1681692777@sybase.com...
We are developing an application in. NET (c # whit
iAnywhere.Ultralite namepaces) Using a base in the desk
computer. db and a base for pocket pc. udb and one doesn't
eat to synchronize the data of the base from the PC to the
base of the pocket. We are despaired then this it is the
basic part of the application and without her we cannot
advance. Thank you to help us
Our iAnywhere version build is 9.0.2.2451.

Here's the code I'm using to synchronize:
string
_hostname="localhost"; _conn.SyncParms.UserName="DBA";
_conn.SyncParms.Password="sql";
_conn.SyncParms.Stream =StreamType.TCPIP;
_conn.SyncParms.StreamParms="host"+_hostname;
_conn.SyncParms.Version="bien_mueble";
_conn.Synchronize();
But, no synchronize.
Error
SQLException:Comunic
ation Error


David Fishburn

2005-08-31, 8:25 pm

Mabel wrote in news:4314cfa0.782c.1681692777@sybase.com of
sybase.public.sqlanywhere.mobilink:

Did you not like Greg Fenton's response?

He gave you the same answer Reg gave you yesterday in response to your
original post in the UltraLite newsgroup.

--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng9 -v).

EBFs and Maintenance Releases
http://downloads.sybase.com/swx/sdmain.stm

Developer Community / Whitepapers
http://www.ianywhere.com/developer

CaseXpress - to report bugs
http://casexpress.sybase.com

CodeXchange - Free samples
[url]http://ianywhere.codexchange.sybase.com/servlets/ ProjectDocumentList[
/url]



Greg Fenton

2005-08-31, 8:25 pm

Mabel wrote:
> We are developing an application in. NET


I responded to your post in the UltraLite newsgroup yesterday.

greg.fenton
--
Greg Fenton
Consultant, Solution Services, iAnywhere Solutions
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com