dbTalk Databases Forums  

Connecting to an UL database on the pc with a pda application

sybase.public.sqlanywhere.ultralite sybase.public.sqlanywhere.ultralite


Discuss Connecting to an UL database on the pc with a pda application in the sybase.public.sqlanywhere.ultralite forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paula
 
Posts: n/a

Default Connecting to an UL database on the pc with a pda application - 01-15-2009 , 08:02 AM






Hello,

I am using SQL Anywhere 10.0.1.3807 with Visual Studio 2005
C# framework 2.0.5 sp 1.

I can write a windows application that connects to an
ultralite database.
I can write a pocket pc application that connects to an
ultralite database on the device.

What I want to do is write a pocket pc application that will
run on desktop (I've done this) and connect to an ultralite
database on the desktop. The end result being that I can run
the exe on either platform by just swapping out the relevant
dlls.

IS THIS POSSIBLE?

I've created a simple application that tries to connect to
the database - If I leave the same dlls I get:
Parse error:
?????????????????????????????????????????????????? ??????????????
for the ULException message property.

If I swap out the iAnywhere.Data.Ultralite.dll and the
ulnet10.dll for the win32 versions, I get a File Load
exception:

Could not load file or assembly 'iAnywhere.Data.UltraLite,
Version=10.0.1.3807, Culture=neutral,
PublicKeyToken=ebdab8d53cff0621' or one of its dependencies.
The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040)

This file is in the same directory as the exe. Is there
another file besides the ulnet10.dll that I need?

If this is possible, please advise as to what I'm doing
wrong!

Thank you in advance,
Paula

Reply With Quote
  #2  
Old   
Chris Keating [Sybase iAnywhere]
 
Posts: n/a

Default Re: Connecting to an UL database on the pc with a pda application - 01-15-2009 , 08:33 AM






At this stage, this is not possible.

Paula wrote:
Quote:
Hello,

I am using SQL Anywhere 10.0.1.3807 with Visual Studio 2005
C# framework 2.0.5 sp 1.

I can write a windows application that connects to an
ultralite database.
I can write a pocket pc application that connects to an
ultralite database on the device.

What I want to do is write a pocket pc application that will
run on desktop (I've done this) and connect to an ultralite
database on the desktop. The end result being that I can run
the exe on either platform by just swapping out the relevant
dlls.

IS THIS POSSIBLE?

I've created a simple application that tries to connect to
the database - If I leave the same dlls I get:
Parse error:
?????????????????????????????????????????????????? ??????????????
for the ULException message property.

If I swap out the iAnywhere.Data.Ultralite.dll and the
ulnet10.dll for the win32 versions, I get a File Load
exception:

Could not load file or assembly 'iAnywhere.Data.UltraLite,
Version=10.0.1.3807, Culture=neutral,
PublicKeyToken=ebdab8d53cff0621' or one of its dependencies.
The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040)

This file is in the same directory as the exe. Is there
another file besides the ulnet10.dll that I need?

If this is possible, please advise as to what I'm doing
wrong!

Thank you in advance,
Paula

Reply With Quote
  #3  
Old   
Paula
 
Posts: n/a

Default Re: Connecting to an UL database on the pc with a pda application - 01-15-2009 , 09:20 AM



Thanks - I'll stop banging my head now!

Quote:
At this stage, this is not possible.

Paula wrote:
Hello,

I am using SQL Anywhere 10.0.1.3807 with Visual Studio
2005 C# framework 2.0.5 sp 1.

I can write a windows application that connects to an
ultralite database.
I can write a pocket pc application that connects to an
ultralite database on the device.

What I want to do is write a pocket pc application that
will run on desktop (I've done this) and connect to an
ultralite database on the desktop. The end result being
that I can run the exe on either platform by just
swapping out the relevant dlls.

IS THIS POSSIBLE?

I've created a simple application that tries to connect
to the database - If I leave the same dlls I get:
Parse error:

?????????????????????????????????????????????????? ????????
?????? for the ULException message property.

If I swap out the iAnywhere.Data.Ultralite.dll and the
ulnet10.dll for the win32 versions, I get a File Load
exception:

Could not load file or assembly
'iAnywhere.Data.UltraLite, Version=10.0.1.3807,
Culture=neutral, PublicKeyToken=ebdab8d53cff0621' or one
of its dependencies. The located assembly's manifest
definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)
This file is in the same directory as the exe. Is there
another file besides the ulnet10.dll that I need?

If this is possible, please advise as to what I'm doing
wrong!

Thank you in advance,
Paula

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.