Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi,
In my windows application i have attached database, i created setup file, when i run the application after installing setup file, its works nice, but the data is not saving to database, its shows the error, access denied. so please tell me how to give read and write access to the database in app.config file.
Posted

1 solution

Please check below -
- You are installing (Saving) your database in C:\Program Files, This Folder is readonly by default in Windows 7

So solution is you can create new folder in C: Dive and save you database in that folder!!!
 
Share this answer
 

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