| andiekurniawan@gmail.com 2006-03-13, 3:23 am |
| Dear All,
I am working on a Windows Mobile 5.0 project and using Visual Studio
2005 for the development environment and Ultralite.NET (EBF# 3249).
I added the following files to the reference list
C:\Sybase\SQL Anywhere
9\ultralite\UltraLit
e. NET\ce\VS8\iAnywhere
.Data.UltraLite.dll
C:\Andie\Sybase\SQL Anywhere
9\ultralite\UltraLit
e. NET\ce\VS8\en\iAnywh
ere.Data.UltraLite.resources.dll
and added a schema file and ulnet9.dll (C:\Andie\Sybase\SQL
Anywhere
9\ultralite\UltraLit
e.NET\ce\x86\) as link.
I also added the udb file in the project folder.
Below is a snippet of the C# code to connect to the database.
(deviceapplication2 is the project name and rapid is the database)
ULConnectionParms lsConn = new ULConnectionParms();
lsConn.DatabaseOnCE = @"\Program
Files\deviceapplicat
ion2\rapid.udb";
lsConn.SchemaOnCE = @"\Program
Files\deviceapplicat
ion2\rapid.usm";
lsConn.UserID = "DBA";
lsConn.Password = "SQL";
moConn = new ULConnection(lsConn.ToString());
moConn.Open();
moConn.DatabaseID = 1;
When I deployed the application to the Windows Mobile 5.0 device, I
received the following error message:
MissingMethodExcepti
on was unhandled
Can't find PInvoke DLL 'ulnet9.dll'
pointing to
moConn = new ULConnection(lsConn.ToString());
Can anyone help on this issue?
Best Regards,
Andie
|