i am new to windows application.. i developed a small project is maintain a details of guest. i want to create a exe. and one more i design a database in vs2010... not a sqlserver..
after install into client system it make a error... "no database is found or db is exist or unc share". how can i solve this problem..
if i do successfully, then i don't need to sql server on my client....please help me frnds
Loading
Karthick ViswanathanPosted Apr 10, 2013, 8:47 AM
1.Select SqlDatabase.mdf file in Solution Explorer and look at its properties:
2.Make sure the "Build Action" property is set as "Content".
The "Copy to Output Directory" property is set as "Copy if newer".
3.Project Property -> Publish tab -> Press "Application Files" Button
Check the database file in the list, and make sure its "Publish Status" is set as "Data File (Auto)" and "Download Group" is set as "(Required)".
4.Project Property -> Publish tab -> Click the "Publish" button to publish your application.
The database file will be deployed with the application in the "Data" folder ofthe application installation folder. An exe.config file will also be deployed along with the application in the application Installation folder.