cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with SUP2.0 Windows Mobile developping

geert-janklaps
Active Contributor
0 Kudos

This week I have been trying out Sybase Unwired Platform, I started with version 1.5 and had no troubles. But now I need to learn SUP2.0. I always get errors in the generated c# code, what I did was:

- Created 2 MBO's (Customer and Sales_order from the sample database)

- Deployed the MBO's to the unwired server (Replication Based)

- Generated the project code

- Created a new Sybase Mobile Application using Visual Studio 2008

- Created a folder in the solution named GeneratedCode

- Copied the class-files and intrnl folder from the generated code into the project folder

- Created references for:

- iAnyWhere.Data.UltraLite.dll

- iAnywhere.Data.UltraLite.resources.dll

- sup-client.dll

- copied following dll's to the project (and set copy to output property to copy always):

- mlcrsa11.dll

- PUtilTRU.dll

- ulnet11.dll

But when I try building the project I get multiple errors that look like this:

The type or namespace name 'ReadWriteLock' does not exist in the namespace 'com.sybase.afx.util' (are you missing an assembly reference?)

Almost all errors refer to com.sybase.afx.util, so I think there's an assembly I need to refer to but I don't know which one. Someone who can help me out with this problem?

Thanks in advance,

Geert-Jan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Geert,

Were you able to resolve this issue. I have similar issue. Please let me know if anybody have resolved this issue.

Thanks & Regards,

~Arun.

geert-janklaps
Active Contributor
0 Kudos

Arun,

I solved this problem by following this steps:

- Generate MBO code

- In Visual Studio 2008 select a new Mobile Device Application (don't select Sybase Unwired Application)

- Drag and Drop all DLL files from the generated code inside the project root

- For each DLL file set copy to output directory property to copy always

- Add references to following DLL's inside the project root: iAnyWhere.Data.UltraLite.dll, iAnyWhere.Data.UltraLite.resources.dll and sup-client.dll)

- Drag and drop generated class folder inside the root of your project

Hope this solves your problem too, if you have any other questions don't hasitate to ask!

Kind regards,

Geert-Jan

Edited by: Geert-Jan Klaps on Sep 15, 2011 2:36 PM

Former Member
0 Kudos

Hi Geert-Jan

These steps resolved my issue.

Thanks,

Usha.

Former Member
0 Kudos

Hi Greet,

Im getting error while deploying the application into Windows Mobile 6 emulator.

Sybase.Persistence.ConnectionProfile _cp = Sybase.Persistence.ConnectionProfile.Find(GetSynchronizationProfile().GetName());

from here it is throwing the below error.

Can't find PInvoke DLL 'PUtilTRU.dll'.

Thanks,

Usha

geert-janklaps
Active Contributor
0 Kudos

Hi Usha,

I had the same problem, what i did was:

- Navigate to the program files folder on the device emulator (by using Windows Explorer)

- Manually copy the missing DLL file in the root of your application folder

This solved my problem, I hope it solves yours too.

Kind regards,

Geert-Jan

Former Member
0 Kudos

Hi Greet,

one more help i am getting Could not load dynamic library 'ulnet11.0.1.2538' error while executing the statement . com.sybase.afx.db.DBUtil.CreateDatabase(GetDbPath(), encryptionKey, GetConnectionProfile().PageSize); from VS 2008 while deploying the application to WM 6.0 emulator.Native Error is iAnywhere.Data.UltraLite.ULSQLCode.SQLE_COULD_NOT_LOAD_LIBRARY.

Do you have any idea on this.

Thanks,

Usha.