|
-
Feb 11th, 2009, 04:10 PM
#1
Thread Starter
Member
[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.
-
Feb 12th, 2009, 01:51 AM
#2
Frenzied Member
Re: database error in CAB file
What is your code for creating and opening the database?
-
Feb 12th, 2009, 07:52 AM
#3
Thread Starter
Member
Re: database error in CAB file
 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...
-
Feb 12th, 2009, 09:30 AM
#4
Frenzied Member
Re: database error in CAB file
so where does your database come from in the first place?
-
Feb 12th, 2009, 10:42 AM
#5
Thread Starter
Member
Re: database error in CAB file
 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
-
Feb 12th, 2009, 02:07 PM
#6
Frenzied Member
Re: database error in CAB file
so you need to deploy it with your app - it sounds as though you are not doing that
-
Feb 12th, 2009, 06:13 PM
#7
Thread Starter
Member
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..
-
Feb 13th, 2009, 02:15 AM
#8
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|