I am developing a small windows form with sqlCE. i made an installer to deploy it to another machine. I added the MyDB,sdf to the Application Folder. but when i run the application it gives me following error.
Access to the database file is not allowed. [ File name = MyDB.sdf ]
i checked the folder in program file(86) and it contain the .sdf file but can't figure it out what is the problem.
my connection string is string ConString = @"Data Source=MyDB.sdf";
any idea what i am doing wrong?