locked
SQL Server CE 3.5 SP2 on .NET 4.0 only install. RRS feed

Answers

  • SQL Compact 3.5 SP2 depends on a VC++ runtime (not sure which one, but assume VC++ 2008 SP1 runtime), this runtime is installed by .NETFx 3.5 SP1, but not included with .NET 4.0 - not sure how you can include this with your private deployment, but the redist is available to be installed.

    Similar issue for version 4.0 CTP:

    Compact 4.0 CTP1 needs Visual C++ 2008 Runtime Libraries (x86, IA64 and x64), Service Pack 1: The native DLLs of SQL Server Compact 4.0 CTP1 need the Microsoft Visual C++ 2008 Runtime Libraries (x86, IA64 and x64), Service Pack 1. Installing the SQL Server Compact 4.0 CTP1 using the Windows Installer (.exe) file, also installs the Visual C++ 2008 Runtime Libraries SP1. If SQL Server Compact 4.0 CTP1 is deployed privately in the application’s folder the following have to be present on the machine for SQL Server Compact to function properly:

    a.      Installing the .NET Framework 3.5 SP1 also installs the Visual C++ 2008 Runtime Libraries SP1.

    b.      Visual C++ 2008 Runtime Libraries SP1 can be downloaded and installed from the location given below: http://go.microsoft.com/fwlink/?LinkId=194827

    Note that installing .NET Framework 2.0 or 3.0 or 4 does not install the Visual C++ 2008 Runtime Libraries SP1.


    Visit my SQL Compact blog - http://erikej.blogspot.com - Please mark as answer, if this was it.
    • Marked as answer by ToadRW Thursday, October 21, 2010 5:37 PM
    Thursday, October 14, 2010 1:51 PM

All replies

  • SQL Compact 3.5 SP2 depends on a VC++ runtime (not sure which one, but assume VC++ 2008 SP1 runtime), this runtime is installed by .NETFx 3.5 SP1, but not included with .NET 4.0 - not sure how you can include this with your private deployment, but the redist is available to be installed.

    Similar issue for version 4.0 CTP:

    Compact 4.0 CTP1 needs Visual C++ 2008 Runtime Libraries (x86, IA64 and x64), Service Pack 1: The native DLLs of SQL Server Compact 4.0 CTP1 need the Microsoft Visual C++ 2008 Runtime Libraries (x86, IA64 and x64), Service Pack 1. Installing the SQL Server Compact 4.0 CTP1 using the Windows Installer (.exe) file, also installs the Visual C++ 2008 Runtime Libraries SP1. If SQL Server Compact 4.0 CTP1 is deployed privately in the application’s folder the following have to be present on the machine for SQL Server Compact to function properly:

    a.      Installing the .NET Framework 3.5 SP1 also installs the Visual C++ 2008 Runtime Libraries SP1.

    b.      Visual C++ 2008 Runtime Libraries SP1 can be downloaded and installed from the location given below: http://go.microsoft.com/fwlink/?LinkId=194827

    Note that installing .NET Framework 2.0 or 3.0 or 4 does not install the Visual C++ 2008 Runtime Libraries SP1.


    Visit my SQL Compact blog - http://erikej.blogspot.com - Please mark as answer, if this was it.
    • Marked as answer by ToadRW Thursday, October 21, 2010 5:37 PM
    Thursday, October 14, 2010 1:51 PM
  • Thanks for the help.  Installing VC+ 2005 SP1 solved the issue.  I tried VC++ 2008 SP1 first, but I still received the same file not found exception.

    Thursday, October 21, 2010 5:41 PM