?
Solved

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

Posted on 2008-06-26
2
Medium Priority
?
1,499 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 750 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 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