Failed to update database “dbname.MDF” because the database is read-only

August 6th, 2008 admin Posted in asp.net No Comments »

Hope this can help save your time for solving this.

Try this step :
1) Check your App_Data directory or any contained files does not have file system attribute Read-only set. (I had some files marked as Read-only)
2) create user ASPNET and NETWORK SERVICE Modify control over the App_Data directory.
3) Restart IIS.

AddThis Social Bookmark Button