Home > Archive > SQL Anywhere Mobile > June 2005 > No valid Constructor









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 No valid Constructor
madhu

2005-06-22, 1:24 pm

ML 9.0.2.3044
Windows Mobile 2003 2nd ed 4.21.1088.14049
Ultralite

Connection Script Details
---------------------------
Event : authenticate_user
Scritp Language : .NET
Script : MLExample.AuthClass.DoAuthenticate


when I synchronize, this is the log on the mobilink server.
E : No valid constructor was found for type "MLExample.AuthClass".

Here is the constructor I have in my class ( which the documentation
specifies will be used )
public AuthClass( DBConnectionContext cc )

{

_conn = cc.GetConnection();

}

Could some one shed some light on what's going on here?

Thanks in advance

Madhu


Randy Jheeta

2005-06-22, 8:24 pm

Perhaps you forgot import the iAnywhere.MobiLink.Script namespace at the top
of your source file?

Or alternativley, try modifying your constructor in the following manner:

public AuthClass( iAnywhere.MobiLink.Script.DBConnectionContext cc )
{
}






"madhu" <madhu. sangam@mobiledatafor
ce.com> wrote in message
news:42b9a7c1$2@foru
ms-1-dub...
> ML 9.0.2.3044
> Windows Mobile 2003 2nd ed 4.21.1088.14049
> Ultralite
>
> Connection Script Details
> ---------------------------
> Event : authenticate_user
> Scritp Language : .NET
> Script : MLExample.AuthClass.DoAuthenticate
>
>
> when I synchronize, this is the log on the mobilink server.
> E : No valid constructor was found for type "MLExample.AuthClass".
>
> Here is the constructor I have in my class ( which the documentation
> specifies will be used )
> public AuthClass( DBConnectionContext cc )
>
> {
>
> _conn = cc.GetConnection();
>
> }
>
> Could some one shed some light on what's going on here?
>
> Thanks in advance
>
> Madhu
>
>



madhu

2005-06-23, 11:24 am

Hi,

I am sorry for not replying back to the group.

I have the import in my source code and also tried the modifying my
constructor.
But did'nt have any luck. Is there anything else I am missing when I am
trying to synchronize ?
Any help would be appreciated.

TIA
Madhu


"Randy Jheeta" <rjheeta@sybase.com> wrote in message
news:42b9d3de$1@foru
ms-1-dub...
> Perhaps you forgot import the iAnywhere.MobiLink.Script namespace at the
> top
> of your source file?
>
> Or alternativley, try modifying your constructor in the following manner:
>
> public AuthClass( iAnywhere.MobiLink.Script.DBConnectionContext cc )
> {
> }
>
>
>
>
>
>
> "madhu" <madhu. sangam@mobiledatafor
ce.com> wrote in message
> news:42b9a7c1$2@foru
ms-1-dub...
>
>



madhu

2005-06-28, 8:25 pm

Finally got the thing resolved. Thanks for the help from the Technical Guys
at iAnywhere and also the forum.

Here is the info for someone who might run into this.

Just make sure that your assemblies in Global assembly Cache are up to date.
I had some old references from my sybase builds lying around.


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