0

When I run window form application in Visual Studio it works, but when make setup of it. two issues occurs:

  1. Either application doesn't runs.
  2. Gives message:

Failed to update database because database is read only.

I am using .mdf database file in project. .mdf file lie in the project folder.

Please provide full detail to solve this problem.

Santosh Kumar
  • 26,475
  • 20
  • 67
  • 118
star
  • 21
  • 3
  • Well, which database engine? How is it (the server) being connected to? What are the permissions on the database file(s)? Etc. –  Aug 09 '12 at 01:02
  • database engine sqlexpress, there is no server it is desktop application .there is no option for permission on mdf file only one option copy to output directory is copy always. – star Aug 09 '12 at 01:50
  • if you wish then i can send whole project............ – star Aug 09 '12 at 05:28
  • http://stackoverflow.com/questions/5713416/failed-to-update-mdf-database-because-the-database-is-read-only-windows-applic –  Aug 09 '12 at 05:53

0 Answers0