Solved

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

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
determining network device capabilities 2 123
Nokia lumia windows phone clear malware 3 167
historical call history 6 74
Migrating From Parse To AWS 8 172
A short article about problems I had with the new location API and permissions in Marshmallow
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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