Click here to Skip to main content
14,640,725 members
Rate this:
Please Sign up or sign in to vote.
See more:
By creating setup project and install application and running program the database application cannot write or edit mdf database in application and appear this error message
"Database is Read only"
How solve this problem?
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 2

hi friend

this problem is for win vista and 7.
1-dont put database files in other Directory only put them in your project directory
2-Right click on Application Folder in the Setup section and
select properties .change the Default Location to
[AppDataFolder][Manufacturer]\[ProductName]
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100