SQLite attempt to write a readonly database error

前端 未结 2 1299
谎友^
谎友^ 2021-02-19 11:11

I have a console application that populates a SQLite database. When the application runs by itself, I don\'t get any errors. If I run multiple instances of the application, wher

相关标签:
2条回答
  • 2021-02-19 11:17

    It is a permissions issue.

    Make sure that your web application that is hosted has add/write/create/delete access to the folder where the sqlite database resides.

    For more details, refer this

    0 讨论(0)
  • 2021-02-19 11:38

    Could also be that The database file is not supported by the MigrationAssembly.

    The same exception is thrown when the EF tries to migrate on a file expected to be a SQLite database which is fi. a text file.

    0 讨论(0)
提交回复
热议问题