Home > Archive > SQL Anywhere Mobile > November 2005 > .NET table_script









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 .NET table_script
Omri

2005-11-14, 7:23 am

hi ,
mobilink 9.0.1.1751
ultralite 9.0.1.1751
i don't understand should i put only the class name or the
DLL name
or the function name
i'm tring to run a .NET table script but it gives me alot of
errors:

I. 11/14 14:48:49. <thread 1.5>: UltraLite synchronization
request from: test_user8 (version: test1)
E. 11/14 14:48:49. <1.5> [test_user8]: Error: Assembly
"Get_Pikuah_Events, Version=1.0.2144.26261, Culture=neutral,
PublicKeyToken=null" does not contain
"Get_Pikuah_Events.Pikuah_events.Get_pikuah_Stmt(?)".
E. 11/14 14:48:49. <1.5> [test_user8]: Error: [-10019] Error
fetching table script GET_VALUE. begin_synchronizatio
n
I. 11/14 14:48:49. <1.5> [test_user8]: ROLLBACK Transaction:
begin_synchronizatio
n
E. 11/14 14:48:49. <1.5> [test_user8]: Error: Assembly
"Get_Pikuah_Events, Version=1.0.2144.26261, Culture=neutral,
PublicKeyToken=null" does not contain
"Get_Pikuah_Events.Pikuah_events.Get_pikuah_Stmt(?)".
E. 11/14 14:48:49. <1.5> [test_user8]: Error: [-10019] Error
fetching table script GET_VALUE.end_synchronization
I. 11/14 14:48:49. <1.5> [test_user8]: Synchronization
failed


Omri Ziv
Omri

2005-11-14, 7:23 am

of course i'm using -sl
dnet(- MLAutoLoadPath=D:\cS
harp_projects\Get_Pi
kuah_Events\bin\Debu
g)
Get_Pikuah_Events - the name of the DLL
Pikuah_events - name of the class
Get_pikuah_Stmt - name of the function


Omri Ziv
David Fishburn

2005-11-14, 11:24 am

Omri wrote in news:43788db5.905.1681692777@sybase.com
of sybase.public.sqlanywhere.mobilink:

O> of course i'm using -sl
O> dnet(- MLAutoLoadPath=D:\cS
harp_projects\Get_Pi
kuah_Events\bin\Debu
g)
O> Get_Pikuah_Events - the name of the DLL
O> Pikuah_events - name of the class
O> Get_pikuah_Stmt - name of the function

Start ML using -vcrs -ot ml.txt and post that output.

If you are in development mode, why are you using 9.0.1?

When you begin a new project, you should always start with the latest
and greatest software.
This means you should be at the 902 maintenance release and the EBF 3137
build on the windows platforms.

--
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]

Omri

2005-11-14, 11:24 am

David Wrote:
D> Start ML using -vcrs -ot ml.txt and post that output.
in the first post of theis issue i put all the information
from the log file . the second post is things i forgot to
put in the first one

> If you are in development mode, why are you using 9.0.1?
> When you begin a new project, you should always start with
> the latest and greatest software.
> This means you should be at the 902 maintenance release
> and the EBF 3137 build on the windows platforms.
>

i have a project that's work already and i don't want to
upgrade right now.

the problem specificley is that i don't know what to write
in the sybase central (ml_add_dnet_table_s
cript) to oparate
the method in my DLL.

Omri Ziv
David Fishburn

2005-11-14, 8:25 pm

Omri wrote in news:4378b88d.e88.1681692777@sybase.com
of sybase.public.sqlanywhere.mobilink:

O> David Wrote:
O> D> Start ML using -vcrs -ot ml.txt and post that output.
O>
O> in the first post of theis issue i put all the information
O> from the log file . the second post is things i forgot to
O> put in the first one
O>

But that is not the complete output, it also doesn't look like the same
verbose switches were on. We need that output.

O>> If you are in development mode, why are you using 9.0.1?
O>> When you begin a new project, you should always start with
O>> the latest and greatest software.
O>> This means you should be at the 902 maintenance release
O>> and the EBF 3137 build on the windows platforms.
O>>
O> i have a project that's work already and i don't want to
O> upgrade right now.

Okay, that makes sense.

Of course while you are developing something new, it is a good time to
be testing your application with a a newer release of SQL Anywhere and
your software...

It is understandable to stay at the 9.0.1 maintenance release, but it is
advisable to apply an EBF to 9.0.1. The current 9.0.1 EBF is 2085.

I recommend moving to it. This will prevent you from running into bugs
that were fixed well over a year ago.

--
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]

Omri

2005-11-15, 3:24 am

D> But that is not the complete output, it also doesn't look
D> like the same verbose switches were on. We need that
D> output.
>

my command line is including -v+ whats the difrnce between
that and -vcrs.
but here is all the log file u need.

to be more detailed i wrote DLL in c# tha use another DLL
(GET_PARAMS).
if you can help me with the proccess of adding the c# DLL
correctley to the mobilink that would be great.

have a great day,

Omri Ziv

David Fishburn

2005-11-15, 9:24 am

Omri wrote in news:43798386.1cc0.1681692777@sybase.com of
sybase.public.sqlanywhere.mobilink:

O> D> But that is not the complete output, it also doesn't look
O> D> like the same verbose switches were on. We need that
O> D> output.
O>>
O> my command line is including -v+ whats the difrnce between
O> that and -vcrs.
O> but here is all the log file u need.

-v+ is more detailed, but I assumed you had not run with it since I
didn't see the information I expected to see. I am not seeing it using
-vcrs either.

Want I wanted to see was the actual script you entered in Sybase Central
for this table.


O>
O> to be more detailed i wrote DLL in c# tha use another DLL
O> (GET_PARAMS).
O> if you can help me with the proccess of adding the c# DLL
O> correctley to the mobilink that would be great.

Have you tried the tutorial from the Help file yet?

MobiLink Tutorials
Tutorial: .NET Synchronization Logic With Adaptive Server Anywhere

What happens when you follow it?

--
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]

Omri

2005-11-15, 9:24 am

> MobiLink Tutorials
> Tutorial: .NET Synchronization Logic With Adaptive
> Server Anywhere
>
> What happens when you follow it?

Hello David,
few things happend when i followed the tutorial:
1) it's written there to link file the mobilink.script.dll
but when i do that the project doesn't recognize it.
and it's written there donot use add reference.
2) i posted another issue today if you can look at it it
will be great but shortley i need to have the user_id of the
mobilink user when it connected to the mobilink so i can
download specific rows for it.
my method signitrue is public string MyMethod(string
user_id)
and in the sybase centeral i wrote the name of the method
with the name of the class and the name of the method.
Get_Pikuah_Events.Pikuah_events.MyMethod
and it gives me alot of errors (attechet file).

help will be exellent
Omri Ziv

David Fishburn

2005-11-16, 9:24 am

Omri wrote in news:4379f6af.2978.1681692777@sybase.com
of sybase.public.sqlanywhere.mobilink:

O>> MobiLink Tutorials
O>> Tutorial: .NET Synchronization Logic With Adaptive
O>> Server Anywhere
O>>
O>> What happens when you follow it?
O> Hello David,
O> few things happend when i followed the tutorial:
O> 1) it's written there to link file the mobilink.script.dll
O> but when i do that the project doesn't recognize it.
O> and it's written there donot use add reference.

This could be due to you using out of date documentation.
Please download the 902 documentation from the website site where you
get the EBFs (below my name).

Looking at:

MobiLink Tutorials
Tutorial: .NET Synchronization Logic With Adaptive Server Anywhere
Lesson 1: Compile the CustdbScripts.dll assembly with MobiLink
references
The CustdbScripts assembly

....
3. Add a reference to the MobiLink API.
- From the Visual Studio .NET Project menu, choose Add Existing Item...
- Select iAnywhere.MobiLink.Script.dll in the win32 directory of your
SQL Anywhere Studio installation. From the Open drop down menu choose
Link File.


So you can see it is using references.



O> 2) i posted another issue today if you can look at it it
O> will be great but shortley i need to have the user_id of the
O> mobilink user when it connected to the mobilink so i can
O> download specific rows for it.
O> my method signitrue is public string MyMethod(string
O> user_id)
O> and in the sybase centeral i wrote the name of the method
O> with the name of the class and the name of the method.
O> Get_Pikuah_Events.Pikuah_events.MyMethod
O> and it gives me alot of errors (attechet file).

Yes, I answered that yesterday. All download scripts receive TWO
parameters. The LastDownload timestamp followed by the MobiLink
User_name.
Your method must take them in that order.


I highly recommend you get the 902 docs and follow the tutorial
successfully before moving on with your project. I will most likely
answer your questions.

--
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]

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