Home > Archive > SQL Anywhere ultralite > May 2005 > MissingMethodException with .Net









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 MissingMethodException with .Net
Jonathan Chapman

2005-04-25, 1:23 pm

Hi,
I'm trying to do a quick app to create a database on a Pocket PC 2002
device with the Ultralite .Net interface. At first it worked and then it
stopped working with a MissingMethodExcepti
on. I have tried to create a new
vb.net project from scratch following the tutorial, with no such luck. I'm
using 9.0.2 build 2551.

I've added in as a reference C:\Program Files\Sybase\SQL Anywhere
9\ultralite\UltraLit
e.NET\ce\iAnywhere.UltraLite.dll and C:\Program
Files\Sybase\SQL Anywhere
9\ultralite\UltraLit
e.NET\ce\en\iAnywhere.UltraLite.resources.dll and added
the existing item C:\Program Files\Sybase\SQL Anywhere
9\ultralite\UltraLit
e.NET\ce\arm\ulnet9.dll as a link.

I only have one line of code
Private DbMgr As New iAnywhere.UltraLite.DatabaseManager

in my form class.

Any help?

Thanks,
Jonathan


Jonathan Chapman

2005-04-25, 8:24 pm

I have it now working in C# with the same code that is in my vb.Net
application. Since the VB.Net project used to work is there a project
setting that must be used? All the references are the same between the two
projects. I have now tried this on 3044.

"Jonathan Chapman" < jonathan_chapman@ape
xsi.com> wrote in message
news:426d30f7$1@foru
ms-1-dub...
> Hi,
> I'm trying to do a quick app to create a database on a Pocket PC 2002
> device with the Ultralite .Net interface. At first it worked and then it
> stopped working with a MissingMethodExcepti
on. I have tried to create a

new
> vb.net project from scratch following the tutorial, with no such luck.

I'm
> using 9.0.2 build 2551.
>
> I've added in as a reference C:\Program Files\Sybase\SQL Anywhere
> 9\ultralite\UltraLit
e.NET\ce\iAnywhere.UltraLite.dll and C:\Program
> Files\Sybase\SQL Anywhere
> 9\ultralite\UltraLit
e.NET\ce\en\iAnywhere.UltraLite.resources.dll and

added

> the existing item C:\Program Files\Sybase\SQL Anywhere
> 9\ultralite\UltraLit
e.NET\ce\arm\ulnet9.dll as a link.
>
> I only have one line of code
> Private DbMgr As New iAnywhere.UltraLite.DatabaseManager
>
> in my form class.
>
> Any help?
>
> Thanks,
> Jonathan
>
>



Jonathan Chapman

2005-04-25, 8:24 pm

I just added the Synchronization Dialog to my C# project and it now has
stopped working. Even after I remove the dialog from the project the
project will not work. I believe this is what happened to my VB.Net
project. What is in this class that could stop the porject from working?

Regards,
Jonathan


"Jonathan Chapman" < jonathan_chapman@ape
xsi.com> wrote in message
news:426d3d6e$1@foru
ms-1-dub...
> I have it now working in C# with the same code that is in my vb.Net
> application. Since the VB.Net project used to work is there a project
> setting that must be used? All the references are the same between the

two
> projects. I have now tried this on 3044.
>
> "Jonathan Chapman" < jonathan_chapman@ape
xsi.com> wrote in message
> news:426d30f7$1@foru
ms-1-dub...
2002[color=darkred]
it[color=darkred]
> new
> I'm
> added
>
>



Philippe Bertrand

2005-04-26, 11:24 am

How are you adding the Sync Progress Dialog? Via Visual Studio wizard?

The VStudio wizard adds a dialog suitable for the iAnywhere.Data.UltraLite
namespace.

From the one line of code you have shown and the DLLs you mentioned, you
appear to be using the older iAnywhere.UltraLite namespace. It may be you
got a mixed up installation after upgrading from 9.0.1. Although the two
namespaces can coexist in an application, they require separate connections.

Another problem is that Visual Studio can only integrate with one version of
ASA. Do you have multiple versions of ASA installed? Try running
<asa902> \ultralite\UltraLite
. NET\win32\utils\inst
allULNet to fix the Visual
Studio integration.

A few things to check:
- Source of your Sync Progress Dialog - what namespace is it using for
UltraLite?
- The online help should say 9.0.2 on the first page.
- The tutorial should mention the iAnywhere.Data.UltraLite namespace - not
iAnywhere.UltraLite

--
- Philippe Bertrand
iAnywhere Solutions, Inc.

Please include in your subject line what UltraLite API are you using
(I.E. UltraLite.NET, Native UltraLite for Java, Embedded SQL, C++,
(pure) Static Java UltraLite, etc.). Please include version and BUILD
numbers in your post.


Mar

2005-05-12, 7:23 am

"Philippe Bertrand" <my.name@ianywhere.com> wrote in message
news:426e5ed9$1@foru
ms-1-dub...

I've got the same same problem. When I upgraded my ASA9 from 9.0.1.1899 to
9.0.2.2542 the problem with MissingMethodExcepti
on appeared.
The problem exists also when I use ebf 9.0.2.3044...

> From the one line of code you have shown and the DLLs you mentioned, you
> appear to be using the older iAnywhere.UltraLite namespace. It may be you
> got a mixed up installation after upgrading from 9.0.1. Although the two
> namespaces can coexist in an application, they require separate

connections.

I've changed DLL's but I can't find any docs for new usage of all libraries.

> Another problem is that Visual Studio can only integrate with one version

of
> ASA. Do you have multiple versions of ASA installed? Try running
> <asa902> \ultralite\UltraLite
. NET\win32\utils\inst
allULNet to fix the

Visual
> Studio integration.


> - The online help should say 9.0.2 on the first page.
> - The tutorial should mention the iAnywhere.Data.UltraLite namespace - not
> iAnywhere.UltraLite


OK but where is the help??


Mar

2005-05-12, 7:23 am

> > - The online help should say 9.0.2 on the first page.
not[color=darkred]
>
> OK but where is the help??


Upssss... I've found it... When you download ebf there is also link for
download docs.


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