简体   繁体   中英

Can't find PInvoke DLL 'sqlceme30.dll'

I am new in mobile deployment.I am working on standard mobile .I am getting this error when i deploy my application on real device.

"   Can't find PInvoke DLL 'sqlceme30.dll'  ".

could any one help me??? thx in advance.. Regards Pankaj Pareek

The file sqlceme30.dll is part of SQL Server Compact Edition, which I would assume you are using in your mobile app.

Are you including the proper SQL Server CE dlls in your cab? You might need to add these manually depending on how you create your installer. You need to bundle more than just the System.Data.SqlServerCe.dll file. Here is a link that walks you through the steps to deploy an app using SQL Server CE 3.5: MSDN: How to: Deploy a SQL Server Compact 3.5 Database with an Application

I would also recommend upgrading to SQL Server Compact Edition 3.5 SP1 if you can. You are currently using 3.0. The performance is a little better and the run time is a tiny bit smaller.

If this doesn't help, please include more details as to how you are using the SQL Server CE, and how you are deploying your mobile app.

It looks like you haven't installed SQL Server CE on your device. By default, when debugging in Visual Studio it will copy and install the right DLLs automatically when you start to debug the application. But on a real device you have to this yourself (or include the correct DLLs inside your application's CAB). Have a look at the link Joe Doyle posted to see how to do this.

Take a look at this blog post http://blogs.msdn.com/sqlservercompact/archive/2007/10/26/can-t-find-p-invoke-dll-sqlcemenn-dll.aspx . Try copying and installing manually those files on your device:

sqlce30.dev.ENU.phone.wce5.armv4i.CAB 
sqlce30.phone.wce5.armv4i.CAB 
sqlce30.repl.phone.wce5.armv4i.CAB

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM