bal*_*dre 12 c# asp.net sqlite .net-3.5
我有一个问题,我认为这与安全有关,但事实证明不能像我几乎做的一切......
网上有大量关于此的信息但没有解决问题的答案.
让我告诉我的步骤:
Img:IIS 7.5中的数据库文件安全性
替代文字http://www.balexandre.com/temp/2010-02-25_1028.png
请注意,所有其他文件和文件夹具有与上述相同的权限
完整的错误是:
Log: Executing query on SQLite Database
Message ***************************************
Attempt to write a read-only database
attempt to write a readonly database
Stack Trace ***********************************
at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
at System.Data.SQLite.SQLiteDataReader.NextResult()
at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
at soDatabaseManager.CommitPersonsToKitchenDatabase() in c:\Adwiza\Kitchen\App_Code\soDatabaseManager.cs:line 242
Run Code Online (Sandbox Code Playgroud)
PS 请记住,这也必须与IIS 6(Windows 2003)一起使用,IIS 7.5仅用于故障排除,因为我们可以更好地控制所有内容......