none
System.DllNotFoundException: Unable to load DLL 'sqlceme35.dll' RRS feed

  • Question

  • Windows Server 2008 R2, SQL Server Compact 3.5 SP1 (3.5.5692) installed, SQL Server Compact 3.5 SP1 x64 (3.5.5692) installed, still getting "Unable to load DLL 'sqlceme35.dll'" with AnyCPU configurations. What am I doing wrong?
    Tuesday, December 8, 2009 6:36 AM

All replies

  • And the x64 version of Framework is installed? Is System.Data.SqlServerCe in the x64 GAC?


    http://erikej.blogspot.com Erik Ejlskov Jensen - Please mark as answer, if this was it.
    Tuesday, December 8, 2009 10:03 AM
    Moderator
  • Of course. System.Data.SqlServerCe is in MSIL GAC.
    Tuesday, December 8, 2009 4:49 PM
  • Anything? Should I file a bug?
    Saturday, December 19, 2009 4:49 AM
  • maybe some more info about your app Managed/Unmanaged - using ADO.NET or LINQ to SQL or Entity Framework??
    http://erikej.blogspot.com Erik Ejlskov Jensen - Please mark as answer, if this was it.
    Saturday, December 19, 2009 9:19 AM
    Moderator
  • Hi Alex,

    Will you be able to give more details here around the machine configuration, Visual Studio (if installed, which version), SQL Server (if installed, which version), etc. installed in the machine and can you also quick confirm (once more) both x86 and x64 versions of SQL Server Compact 3.5 SP1 are installed and not 3.5 SP2 beta, etc.
    This will help us understand the issue completely. Blog related to the issue mentioned by you can be found here: http://blogs.msdn.com/sqlservercompact/archive/2007/10/26/can-t-find-p-invoke-dll-sqlcemenn-dll.aspx
    Thanks
    Imran
    “This posting is provided "AS IS" with no warranties, and confers no rights”.
    Sunday, December 27, 2009 7:48 AM
  • Installed:

    - VS 2008 SP1
    - VS 2010 Beta 2
    - Microsoft SQL Server Compact 3.5 SP1 Design Tools English
    - Microsoft SQL Server Compact 3.5 SP1 Query Tools English
    - Microsoft SQL Server Compact 3.5 SP1 x64 English
    - Microsoft SQL Server Compact 3.5 SP2 Beta English
    Monday, December 28, 2009 4:37 AM
  • Thanks, it is recommended to have SP2 for both x64 and x86 installed, not to have the SP1 and SP2 mixed. Download and install the x64 SP2 msi from here: http://www.microsoft.com/downloads/details.aspx?FamilyID=411ba1c5-ba57-45b6-9148-91bed6e7a9f1&displaylang=en
    http://erikej.blogspot.com Erik Ejlskov Jensen - Please mark as answer, if this was it.
    Wednesday, January 6, 2010 12:37 PM
    Moderator
  • I installed SP2 Beta 2 for both x64 and x86. Now AnyCPU configurations work, but x86 fail with the same exception.
    Thursday, January 7, 2010 7:10 PM
  • Any light on this one?
    Thursday, January 14, 2010 9:19 PM
  • So far your initial problem has been solved, or ??

    Could you please share more info about your application (Managed, LINQ to SQL, Entity Framework ??). Private / shared deployment etc. System.Data.SqlServerCe.dll version referenced. Thanks in advance.
    http://erikej.blogspot.com Erik Ejlskov Jensen - Please mark as answer, if this was it.
    Friday, January 15, 2010 8:33 AM
    Moderator
  • It is a simple console app targeting .NET Framework 3.5 SP1. The version of the referenced System.Data.SqlServer.Ce.dll is 3.5.1.0, reference path is C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Desktop\System.Data.SqlServerCe.dll. I have two build configurations: Any CPU and x86. And I want both of them to work.
    Friday, January 15, 2010 5:39 PM