Showing posts with label mobile. Show all posts
Showing posts with label mobile. Show all posts

Wednesday, March 28, 2012

I-Mate JasJar And compact framework installation Problem ?

Hi everyone here

i have a little problem :

i tried to install the compact framework onto my pocket pc with windows mobile 5.0

but the installation fiailed and gave me an error .

the error message said that :

the version of installation is not specified for this version of

operating system ..

so what can i do to install compact framework on the device ?

please help !

Which version of the Compact Framework? How exactly have you tried to install it? Is this message produced on desktop or device?

|||

Hi

Which version of the Compact Framework?

NetCF 2.0

How exactly have you tried to install it?

i have copied the files :

X:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\wce500\armv4i\NETCFv2.wm.armv4i.cab

and run it .

Is this message produced on desktop or device?

after i installed the file above , i tried to run

an application uses the namespace System.Data.SqlServerCe

i got an error message said :

" File Or Assembly name 'System.Data.SqlServerCe , Version=3.0.3600.0, .....

...' , or one of its depenencies, was not found."

so what is the problem ?

regards

|||

in regards to the SqlServerCE error message, SQL Server Mobile needs to be installed separate from the framework:

http://msdn2.microsoft.com/en-us/library/ms171938.aspx

|||

You've got this message because your application is using SQL Mobile which you have to install separately from NETCF.

|||

Hi

thank you for your response, but the problem happened after i had installed the SQLServerCe ..

is there another reason for this error message ?

Regards.

|||

Either you’ve installed incorrect version (e.g. SQL CE 2.0 instead of SQL Mobile) or you’ve installed it before NETCF (which would suppress managed provider installation).

|||

Hi

thanks for you

I have solved the problem by reinstalling the SqlServerCe, now everything is all right.

Regards

sql

Friday, March 23, 2012

Image insertion to ss2005 from Windows Mobile

Hi ,

I am trynig to insert an image from the Windows mobile to the SQL database.

Is it possible to perform this using RDA ?

After some search in this forum , I got an impression that the only way to do this by storing the image in a local database and then do a merge replication.

I do not want to do the merge replcation just fo rthis reason.

Is it possible in RDA?

Debugging shows only some part of the data is getting updated.

While trying to retrieve the image in a webpage error is poping up.

My code is :

string strbytes = (Convert.ToBase64String(bytes)).ToString();

DbObj.GetSubmitSql("Update Odrs set SignedBy ='" + txtSign.Text + "', Signature = Convert(Image,'" + bytes + "') where OrderId=" + orderNo + "");

Please help....

No, that is not possible to do using SqlCeRemoteDataAccess.SubmitSql() which I presume you’re trying to use.

Use SQL Client and use parameters to pass a byte array with image instead.

Sunday, February 19, 2012

IID_IDBInitialize interface of sql mobile 2005 problem in VisualStudio2005

Opening a connection to the database in Visual Studio 2005 and while closing the connection donot release the IID_IDBInitialize interface ,properties and not Uninitialising.

Try to open database file using CFile to check existence.

Works perfectly using sqlce2.0 & evc4.0 project.

After upgrading the above project to Visual Studio 2005

Same CFile open method fails at run time

But if close the connection completely i.e. close the IID_IDBInitialize interface also .Then it works perfectly in Visual Studio 2005.

Is there any change in IID_IDBInitialize interface of sql mobile 2005 ?

SQL Mobile *REALLY* commits the changes to DISK FILE at a default flush interval of 10 seconds. So, may be the database might have been created in RAM and is yet to be flushed to DISK and with in this flush interval, you might hit this problem.

Thanks,

Laxmi Narsimha Rao ORUGANTI, SQL Server Everywhere, Microsoft Corporation

|||

of course, this default interval (for commit transaction) could be changed and you could ask the SQL CE 3.0 engine to flush in real time (what we do in our development)


HTH,
Fabien.

IID_IDBDataSourceAdmin Error Trying to Create a Database using Query Analyzer on a Mobile Device

Hi,

Please provide some help regarding the "Interface Defining Error: IID_IDBDataSourceAdmin" error while trying to create a SDF database using Query Analyzer on a Windows CE 5.0 mobile device (Symbol MC3000).

Error: 0x80004005 E_FAIL

Native Error: 28558

Description: SQL Mobile encountered problems when creating database [,,,,]

Param. 0: 0

Param. 1: 0

Param. 2: 0

Param. 3:

Param. 4:

Param. 5:

A list of (related) installed packages:

NETCFv2.wce5.armv4i.cab

sqlce30.dev.ENU.wce5.armv4i.CAB

sqlce30.repl.wce5.armv4i.CAB

sqlce30.wce5.armv4i.CAB

PS.

Basically I have developed a mobile application that programmatically creates the database, the code worked on a similar device (Win CE 50), trying to run the application on a new device resulted in database creation errors. I tried creating a test database manually .. and this is what I got.

Browsing MSDN or searching on the Forum did not help.

~Zarko Gajic

AH!

Problem "solved". The device was in its cradle BUT no battery was installed!

When the battery was inserted I was able to create the database using Query Analyzer.

However, I now have additional problems:

Trying to create the database programmatically (using SQlCeEngine.CreateDatabase) results in:

ErrorCode: 8007000E

Minor Code 28558.

Again I can not find any meaningful info on this.

~Zarko Gajic