|
Home > Archive > SQL Anywhere Mobile > October 2005 > Synchonize on PocketPC2003 With Ultralite and dotnet
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 |
Synchonize on PocketPC2003 With Ultralite and dotnet
|
|
|
| Is it possible to use synchronization in a .net application on a pocketpc
2003 device ?
We are using the Ultralite Database.
| |
| David Fishburn 2005-10-27, 8:20 am |
| "Mark" <mark@3wt.nl> wrote in news:4343981c$1@foru
ms-2-dub of
sybase.public.sqlanywhere.mobilink:
M> Is it possible to use synchronization in a .net application on a
M> pocketpc 2003 device ?
M> We are using the Ultralite Database.
Please ALWAYS include version and MORE importantly BUILD number
with EACH post (dbeng9 -v).
From the 902 Help:
UltraLite.NET User's Guide
Understanding UltraLite.NET Development
Synchronizing UltraLite applications
--
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]
| |
|
| Version 9.02 b3198
thanx, I found the example. Are there more elaborate examples on this
subject, so I can get basic synch working and the work my way from there ?
"David Fishburn" <fishburn_spam@off.ianywhere.com> schreef in bericht
news:Xns96E65ABD13CE
0fishburnsybasecom@1
27.0.0.1...
> "Mark" <mark@3wt.nl> wrote in news:4343981c$1@foru
ms-2-dub of
> sybase.public.sqlanywhere.mobilink:
>
> M> Is it possible to use synchronization in a .net application on a
> M> pocketpc 2003 device ?
> M> We are using the Ultralite Database.
>
> Please ALWAYS include version and MORE importantly BUILD number
> with EACH post (dbeng9 -v).
>
> From the 902 Help:
> UltraLite.NET User's Guide
> Understanding UltraLite.NET Development
> Synchronizing UltraLite applications
>
> --
> 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]
>
| |
|
| Version 9.02 b3198
I added the example code to my app, but get the following message:
An unhandled exception of type 'iAnywhere.Data.UltraLite.ULException'
occurred in System.Windows.Forms.dll
Additional information: Information for synchronization is incomplete or
invalid, check '-n/a-'
I am at a loss here.
"Mark" <mark@3wt.nl> schreef in bericht news:4343dd96$1@foru
ms-1-dub...
> Version 9.02 b3198
>
> thanx, I found the example. Are there more elaborate examples on this
> subject, so I can get basic synch working and the work my way from there ?
>
>
> "David Fishburn" <fishburn_spam@off.ianywhere.com> schreef in bericht
> news:Xns96E65ABD13CE
0fishburnsybasecom@1
27.0.0.1...
>
>
| |
| Greg Fenton 2005-10-27, 8:20 am |
| Mark wrote:
>
> Additional information: Information for synchronization is incomplete or
> invalid, check '-n/a-'
>
Can you post the code where you declare, initialize and populate the
SyncParms object and its fields? As well, post the code where you
initiate synchronization ( ULConnection.Synchronize() ).
greg.fenton
--
Greg Fenton
Consultant, Solution Services, iAnywhere Solutions
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/
| |
|
| Version 9.02 b3198
Hi, I found the problem.
In the example (Ultralite .Net User's Guide, page 54) it says:
internal void ActiveSyncHandler(ob
ject sender, EventArgs e )
{
conn.SyncParms.Stream = ULStreamType.ACTIVE_SYNC;
conn.Synchronize();
}
However without the following code I cannot get it to work. Maybe the
documentation should be updated ?
.....
conn.SyncParms.Stream = ULStreamType.ACTIVE_SYNC;
conn.SyncParms.StreamParms = "stream=tcpip";
conn.SyncParms.UserName = "User";
conn.SyncParms.Version = "Default";
conn.Synchronize();
.....
"Greg Fenton" <greg. fenton_NOSPAM_@ianyw
here.com> schreef in bericht
news:43448f5f$1@foru
ms-2-dub...
> Mark wrote:
>
> Can you post the code where you declare, initialize and populate the
> SyncParms object and its fields? As well, post the code where you
> initiate synchronization ( ULConnection.Synchronize() ).
>
> greg.fenton
> --
> Greg Fenton
> Consultant, Solution Services, iAnywhere Solutions
> --------
> Visit the iAnywhere Solutions Developer Community
> Whitepapers, TechDocs, Downloads
> http://www.ianywhere.com/developer/
| |
| David Fishburn 2005-10-27, 8:20 am |
| "Mark" <mark@3wt.nl> wrote in news:43462d24@forums
-1-dub of
sybase.public.sqlanywhere.mobilink:
M> Version 9.02 b3198
M>
M> In the example (Ultralite .Net User's Guide, page 54) it says:
Since we never use printed documentation, always the Help file, could
you show us the reference like this:
UltraLite.NET User's Guide
Understanding UltraLite.NET Development
Synchronizing UltraLite applications
Adding ActiveSync synchronization to your application
Ahh, forget it, I believe I found your reference:
UltraLite.NET User's Guide
iAnywhere.Data.UltraLite namespace
ULActiveSyncListener
interface
ActiveSyncInvoked method
I have sent a note to our documentation team.
Thanks for bringing it to our attention.
M> conn.SyncParms.Stream = ULStreamType.ACTIVE_SYNC;
M> conn.SyncParms.StreamParms = "stream=tcpip";
M> conn.SyncParms.UserName = "User";
M> conn.SyncParms.Version = "Default";
M> conn.Synchronize();
Besides the first 2 lines, each remote database must have a _unique_
UserName. So make sure you choose something meaningful. Also this
value is passed to all the download scripts as the second "?". This
allows the data to be customized to this user without hard coding any
values in the scripts themselves.
The script version should always be specified. I usually do something
like this:
conn.SyncParms.Version = "ProjectName_1_0";
--
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]
|
|
|
|
|