Posted on: 10/20/2011 11:24:21 PM | Views : 232

System.Data.SqlClient.SqlException: Failed to update database "C:\PROGRAM FILES (X86)\MICROSOFT\LENDINGPROGRAMPRO\LENDINGLIBRARY.MDF" because the database is read-only.
 
I made a simple data base program based on .mdf ( SQL Server) I installed it to my computer ( ProgramFiles) using VS Setup Wizard, when i create a new data then save it OR delete a data, i got that error. How do i change that to not read only.

ee the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Data.SqlClient.SqlException: Failed to update database "C:\PROGRAM FILES (X86)\MICROSOFT\LENDINGPROGRAMPRO\LENDINGLIBRARY.MDF" because the database is read-only. at LendingProgram.LendingLibraryDataSetTableAdapters.TableAdapterManager.UpdateAll(LendingLibraryDataSet dataSet) in C:\Users\home\Desktop\LendingProgram\LendingProgram\LendingLibraryDataSet ...

Go to the complete details ...