'The database file is locked' with System.Data.SQLite
问题 I am suddenly getting the following errors from SQLite after adding a new transaction: The database file is locked database is locked Has anyone seen this? I added an update transaction (following some successful selects/inserts). I can't find anything different about this one... 回答1: I figured it out. From looking at this [really old] thread on the phxsoftware site, it seems like there can be locking problems if you don't immediately dispose of readers and commands after executing them. I