When I run my app from the project folder in bin\debug
or bin\release
, it works fine. Everything as well as my database works fine.
But when I create a setup file with my debug or release files my database doesn't work. I set my database connection like:
SqlCeConnection compact_con = new SqlCeConnection(@"Data Source=" + Directory.GetCurrentDirectory() + @"\chondrokotha.dat;Password=4545;");
and keeps the chondrokotha.dat
in the debug folder.
My files look like this:
after that i put the database into a folder named chonrokotha. in this time error shows like
How can I solve this problem during creation of a setup file?