Solved

Getting "The specified module could not be found" error when compacting SQL CE database.

Posted on 2008-06-26
2
1,491 Views
Last Modified: 2013-12-21
Hello,

I'm trying to programatically change a SQL CE Database's password. I found that the only way to do this is by compacting the DB, by calling the Compact() method while passing a new connection string with the new password.
This seems to be working fine when I test it using the Emulator, but I get a "The specified module could not be found" error when I test it on a physical PPC device. The error seems to happen when the Compact method is called.

Any ideas?

Thanks.
System.Data.SqlServerCe.SqlCeException was unhandled

  Message="The specified module could not be found."

  HResult=-2147024770

  NativeError=27777

  Source="SQL Server Compact ADO.NET Data Provider"

  StackTrace:

    at System.Data.SqlServerCe.SqlCeEngine.ProcessResults()

    at System.Data.SqlServerCe.SqlCeEngine.Repair()

    at System.Data.SqlServerCe.SqlCeEngine.Compact()

   InnerException: 

Open in new window

0
Comment
Question by:Mariano77
2 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 250 total points
ID: 21882746
 Do you have the SQL Compact runtime installed, and, do you have the sqlcecompactxx.dll and sqlcesexx.dll in your device?
0
 

Author Comment

by:Mariano77
ID: 21886954
The SQL runtime is installed - if I comment out the Compact() method in my code, the app runs fine.
Where do I check for those 2 dlls?

Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
A short article about problems I had with the new location API and permissions in Marshmallow
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now