Results 1 to 8 of 8

Thread: [RESOLVED] database error in CAB file

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2008
    Posts
    42

    Resolved [RESOLVED] database error in CAB file

    i used SQL Server Compact 3.5 for create my connection and all datatable..
    and debug fine....
    but after I done the CAB file and install it on my phone....
    all the forms with datatable just get an error..."database file can not be found" it said..

    did i missed anything in the procedue??!

    for the mean while i found myself a solution ...and that is ...I copy the temponary debug .sdf file to my installed project..

    but surely..there is a formal way?

    HELP....
    Last edited by husky_doggy; Feb 11th, 2009 at 04:39 PM.

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: database error in CAB file

    What is your code for creating and opening the database?
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2008
    Posts
    42

    Re: database error in CAB file

    Quote Originally Posted by petevick
    What is your code for creating and opening the database?
    i just used its add> add new data source.
    and drag the table to the form to create the tableadapter...

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: database error in CAB file

    so where does your database come from in the first place?
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2008
    Posts
    42

    Re: database error in CAB file

    Quote Originally Posted by petevick
    so where does your database come from in the first place?
    I created it in Server explorer in my vb project

  6. #6
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: database error in CAB file

    so you need to deploy it with your app - it sounds as though you are not doing that
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  7. #7

    Thread Starter
    Member
    Join Date
    Nov 2008
    Posts
    42

    Re: database error in CAB file

    yea..thats the thing...
    i know i need to build the sdf file along wiv the project itself...
    but i cant find any option to do it..

  8. #8
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: database error in CAB file

    Add a 'setup project' to your project, and add the database to that setup project and it will be deployed when you deploy the setup.

    The setup project can also deploy the compact framework, SQL compact etc
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width