title: "Database is read-only" Exception
body: <h2>Server Error in '/' Application.</h2>
  
  <p>i tried all the things but im unable to write to database from another pc i am able to read but not able to write 
  any solution ?</p>
  
  <blockquote>
    <p>Failed to update database
    "C:\INETPUB\WWWROOT\APP_DATA\REPORT_DB.MDF"
    because the database is read-only. 
        Description: An unhandled exception occurred during the
    execution of the current web request.
    Please review the stack trace for more
    information about the error and where
    it originated in the code.</p>
  </blockquote>
  
  <pre><code>Exception Details: System.Data.SqlClient.SqlException: Failed to update database "C:\INETPUB\WWWROOT\APP_DATA\REPORT_DB.MDF" because the database is read-only.
  
  Source Error: 
  
  
  Line 29:       cmd.Parameters.AddWithValue("@paswd", paswd);
  Line 30:       cmd.Parameters.AddWithValue("@name", name);
  Line 31:       cmd.ExecuteNonQuery();
  Line 32:       con.Dispose();
  Line 33:       
  </code></pre>