troubleshooting Question

Can't find PInvoke DLL 'sqlceme35.dll'

Avatar of mph23
mph23Flag for United States of America asked on
Microsoft SQL Server.NET ProgrammingSmartphone Programming
2 Comments1 Solution4551 ViewsLast Modified:
I am trying to add a database to my windows mobile 6.5 app but I'm getting this error when I try to deploy it to the  emulator. I am using VS 2008 Pro and Visual Basic.

System.MissingMethodException was unhandled
  Message="Can't find PInvoke DLL 'sqlceme35.dll'."
  StackTrace:
       at System.Data.SqlServerCe.SqlCeCommand..ctor()
       at ToolsSql2.ToolsSql2DataSetTableAdapters.usersTableAdapter.InitAdapter()
       at ToolsSql2.ToolsSql2DataSetTableAdapters.usersTableAdapter.get_Adapter()
       at ToolsSql2.ToolsSql2DataSetTableAdapters.usersTableAdapter.Fill(usersDataTable dataTable)
       at ToolsSql2.Form1.Form1_Load(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form._SetVisibleNotify(Boolean fVis)
       at System.Windows.Forms.Control.set_Visible(Boolean value)
       at System.Windows.Forms.Application.Run(Form fm)
       at ToolsSql2.Form1.Main()
  InnerException:

I saw a similar post id # 26325558 but his resolution was to upgrade from 3.0 to CE 3.5. I only installed 3.5.

My current dlls are in both:
C:\Program Files\Microsoft SQL Server Compact Edition\v3.5
C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Devices\wce500\armv4i

and I see sqlceme35.dll in those 2 directories?

My regedit shows:
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft SQL Server Compact Edition/v3.5/ENU
(Default) Data = C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Devices

Do I need to install something for the  emulator? If so, how?
Do I install SSCERuntime-ENU or SSCEDeviceRuntime-ENU?


ASKER CERTIFIED SOLUTION
hjgode
Tier 3 Senior Technical Support Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros