title: System.Data.SQLite.SQLiteException Attempt to write a read-only database on Windows 8
body: <p>I developed an applicaiton that works fine &lt;= Windows 7. It uses SQLlite database with VB and C#. However on <strong>Windows 8</strong> (Never had this specific problem on other windows os) there is an issue when trying to write to database</p>
  
  <pre><code>System.Data.SQLite.SQLiteException: Attempt to write a read-only database
  </code></pre>
  
  <p>I created  database file on windows 8 pc like:   </p>
  
  <pre><code> Try
       If (Not File.Exists(System.Environment.CurrentDirectory &amp; "\MY_DB.db")) Then
                  Dim conn = New SQLite.SQLiteConnection("Version=3;New=True;Compress=False;Read Only=False;Data Source=" &amp; System.Environment.CurrentDirectory &amp; "\MY_DB.db")
                  conn.Open()
                  '...DO STUFF  
                  conn.Close()
                  conn.Dispose()
                  conn = Nothing
       End If
  
   Catch ex As Exception
              'Throw ex
              Return False
   End Try
  </code></pre>
  
  <p>But didn't work.</p>
  
  <p>So basically I have tried:</p>
  
  <ol>
  <li>Added <code>Read Only=False</code> when creating db file but didn't work.</li>
  <li>The folder the database resides in must have write permissions, as well as the actual database file. So did it, didn't work (on windows 7 would look like <img src="https://i.stack.imgur.com/2scRp.png" alt="enter image description here">).</li>
  </ol>
  
  <p>What can I do to make databse writable ?</p>