mph23
asked on
Can't find PInvoke DLL 'sqlceme35.dll'
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.MissingMethodExcept ion was unhandled
Message="Can't find PInvoke DLL 'sqlceme35.dll'."
StackTrace:
at System.Data.SqlServerCe.Sq lCeCommand ..ctor()
at ToolsSql2.ToolsSql2DataSet TableAdapt ers.usersT ableAdapte r.InitAdap ter()
at ToolsSql2.ToolsSql2DataSet TableAdapt ers.usersT ableAdapte r.get_Adap ter()
at ToolsSql2.ToolsSql2DataSet TableAdapt ers.usersT ableAdapte r.Fill(use rsDataTabl e dataTable)
at ToolsSql2.Form1.Form1_Load (Object sender, EventArgs e)
at System.Windows.Forms.Form. OnLoad(Eve ntArgs e)
at System.Windows.Forms.Form. _SetVisibl eNotify(Bo olean fVis)
at System.Windows.Forms.Contr ol.set_Vis ible(Boole an value)
at System.Windows.Forms.Appli cation.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\wce50 0\armv4i
and I see sqlceme35.dll in those 2 directories?
My regedit shows:
HKEY_LOCAL_MACHINE/SOFTWAR E/Microsof t 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?
System.MissingMethodExcept
Message="Can't find PInvoke DLL 'sqlceme35.dll'."
StackTrace:
at System.Data.SqlServerCe.Sq
at ToolsSql2.ToolsSql2DataSet
at ToolsSql2.ToolsSql2DataSet
at ToolsSql2.ToolsSql2DataSet
at ToolsSql2.Form1.Form1_Load
at System.Windows.Forms.Form.
at System.Windows.Forms.Form.
at System.Windows.Forms.Contr
at System.Windows.Forms.Appli
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\wce50
and I see sqlceme35.dll in those 2 directories?
My regedit shows:
HKEY_LOCAL_MACHINE/SOFTWAR
(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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can start the emulator manually, setup the share, install the runtime cab files for SQLCE 3.5 and then shutdown the emulator BUT select "Save State" to make the changes persistent for this emulator image. You may also simply select "Save State" in the emulators File menu.
See also here http://www.christec.co.nz/blog/archives/253 BUT the cab files for SQLCE 3.5 maybe named differently.
I am sorry, but I currently dont have the SQLCE 3.5 cab file names at my hand.
regards
Josef