.sdf deployment problem VS2005

I have .sdf and .xds objects in my project for a PocketPC 2003 device. When I debug all of the CF2.0, SQL, and .SDF files are downloaded to the device. However, when I install via the application.cab file, the .sdf, .xds, and CF files do not show up on the device.

What am I missing here




Answer this question

.sdf deployment problem VS2005

  • Shalabh Gupta

    First ensure that your SDF has Build Action set to 'Content' and Copy to Output Directory = True in your project. When you then create a Smart Device Setup Project in VS2005 to create the CAB file for deployment, you need to include the project output AND the content files from your project in the setup project.

    Darren



  • omarf

    I think I found the problem(s). A) On the device I removed SQLClient2.0. B) In VS I rebuilt .sdf and .xsd. Now it works. I think the .sdf that I replace in VS was based on CF1.0

  • vishal868

    cool. thanks for posting your solution.

    -Darren



  • mjwills

    After installing the CF, SQL and application cabs the .sdf file is in the correct folder. However, I am unable to open the .sdf via the application or SQLce Query Analyzer. I get the following message:

    Error:0x80004005 E_FAIL

    Native Error: (25039)

    Description : Access to the database file is not allowe, {,,,File name,,]

    Interface defining error: IID_IDBInitialize

    Param. 0:0

    Param. 1:0

    Param. 2:0

    Param. 3 \Program Files\Myapplication folder\myapplication.sdf

    Param. 4:

    Param.

    I am still missing something. What



  • .sdf deployment problem VS2005