Attempt to write a readonly Database Error solution (C #, SQLite )..

Source: Internet
Author: User

A few days ago, I suddenly came up with an idea. I used C # And SQLite to develop an Ajax notepad. After that, my friend told me to take a look at it and it was not easy to use it. Debugging can be performed in vs2005, but attempt to write a readonly a database is always displayed when new records are saved to the SQLite database. A calm analysis: I have not set the database to read, but sqlite3.exe can be used to implement the crud (create read update delete) operation, which should not be a database problem.ProgramIt can be used on my machine.CodeNo problem, the most likely problem is the system permission problem. Solution: Control Panel> folder option> use simple file sharing (recommended) to remove the preceding check box. Find the folder where the SQLite database is located, right-click, choose Properties> Security, and add write permissions to the users user group. Try again to solve the problem.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.