I have generated a windows application. I have used .MDF file. The project is working fine but when I have attached setup project to it and installed it.
The security permissions of .mdf file get changed and become read only not able to write/update.(When Setup project copying the .MDF file that time the permission of the .MDF file is get changed and become read only)
I am able to change the permission of .MDF file manually then after working fine.
But is not correct way of deployment So please guide me what should I do now so I can read, write and update properly. What code should i use/ technique should i use so I can do so.
I am using :
Visual Studio 2008,
dot net framwork 3.5 sp1
MDF FILE of Microsoft Sql server 2008 Express RC2