Author: dht32559 | Posted on: 9/30/2009 6:37:56 AM | Views : 345

My ASPNETDB.MDF file seems to be locked, preventing me from logging into my system, or from creating new users etc. It's a bit of a crisis for me as I can't do any more development until I resolve this.
I am using TortoiseSVN to maintain my code and the ASPNETDB file is within the version-controlled files.
The last time I got locked out, restarting the computer was all that was required, but it hasn't worked this time!
It throws the following exception...
System.Data.SqlClient.SqlException was caught
  Message="Failed to update database \"C:\\INETPUB\\WWWROOT\\BOARDTOOLS\\APP_DATA\\ASPNETDB.MDF\" because the database is read-only."
  Source=".Net SqlClient Data Provider"
  ErrorCode=-2146232060
 
  LineNumber=29
  Number=3906
  Procedure="aspnet_Applications_CreateApplication"
  Server="\\\\.\\pipe\\DF6874CD-E0B0- ...

Go to the complete details ...