C# – “Can’t find PInvoke DLL ‘sqlceme35.dll”

ccompact-frameworksql-server-cewindows-mobile

I recently installed the new Windows Mobile 6.5.3 SDK upgrading my old Windows Mobile 6 project.

I'm getting an error: "Can't find PInvoke DLL 'sqlceme35.dll" when I try to invoke SQL libraries (this is managed code obviously).

Any ideas how to fix this issue?

Best Answer

Have you installed the SQL Server CE to it?

Never used the Mobile SDK, so I'm taking a stab in the dark here, but this blog lists the primary reasons you would get that error, and the solution for them: http://blogs.msdn.com/b/sqlservercompact/archive/2007/10/26/can-t-find-p-invoke-dll-sqlcemenn-dll.aspx

Google seems to indicate that a lot of people's problems were with the cab files or not having installed server CE.

Related Topic