Click here to Skip to main content
15,851,242 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I use VS.NET 2010
SQL express

I have generated an 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 permission of .mdf file get changed and become read only not able to write/update.
At the local computer and other computer with windows 7 installation ,I can change the database but when I setup my application on the other computer with windows 8 installation , it cant change database and send "Failed update .mdf...." error message.
When I manually change the permission of the .mdf & .ldf file for "Users" to full control it works. But I want to set the full control permission with my setup automatically .
How can I do that?

I run my application as an administrator, and the .mdf & .ldf files have full control permission for Administrator users. At this state is doesnt work,too . But when I set the full control for "Users" , it works!. I dont know why?
Regards
Posted
Updated 4-Aug-14 12:48pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900