I don't want to see my project files like .cs and other after setup? How can Do I? And I want to embed
my Access db in my project.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Jul 10, 2012, 6:28 AM
praveen mauryaPosted Jul 10, 2012, 5:52 AM
after that in your project a new file named as app.config will there open this and copy the connection string it should be like this
"DataSource=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database\sahara.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
after that use this connection strin on your all project
i always do this with sql server database but never in access but i think it will be same
if this work tell me an click on accepted answer
thank you
Yakup BGPosted Jul 10, 2012, 5:21 AM
praveen mauryaPosted Jul 10, 2012, 1:28 AM
Murli is right first you need to create a setup project then in file system choose add-->output project---->source file.
visit here for how to create a setup projet
http://vijirajkumar.blogspot.in/2010/03/create-setup-and-deployment-project.html
http://www.c-sharpcorner.com/uploadfile/vishnuprasad2005/setupprojects12022005022406am/setupprojects.aspx
Posted Jul 10, 2012, 12:33 AM
If you're using web application then you can create web setup project or you can publish the project and you can host it in the IIS.