Solved

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

Posted on 2008-06-26
2
1,494 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
can not send messages between two phones 20 129
Outlook on Android with no lock screen 2 144
Parse Alternatives 7 227
Jailbreak and Rooting on mobile devices 10 145
This article shows how to setup the internet connectivity on Windows Mobile Emulator.   I assume that you already have Microsoft Visual Studio, Microsoft Windows Mobile SDK's and the emulator installed. The emulator is available with Visual Studi…
With Windows Embedded Handheld, called Windows Mobile, Microsoft re-designed the user interface. The Start Icon moved down to the bottom, inside the menu bar area.   If you need to hide the Start Icon and/or the SIP (soft input panel, softwar…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

770 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