【发布时间】:2017-03-28 07:28:06
【问题描述】:
我正在尝试通过设置 FullMutex 模式来创建连接。这是抛出 SQLiteException - 无法打开文件 db 路径滥用。
_DBConn = new SQLiteConnection(new SQLitePlatformWinRT(), dbpath,SQLite.Net.Interop.SQLiteOpenFlags.FullMutex);
如何解决这个问题?
【问题讨论】:
-
没有
FullMutex标志是否可以工作? -
是的,它可以在没有标志的情况下工作
-
你能把你的错误堆栈放在这里吗?
-
我的异常消息“无法打开数据库文件:dbpath(误用)”和堆栈跟踪“在 SQLite.Net.SQLiteConnection..ctor(ISQLitePlatform sqlitePlatform, String databasePath, SQLiteOpenFlags openFlags, Boolean storeDateTimeAsTicks, IBlobSerializer 序列化程序, IDictionary
2 tableMappings, IDictionary2 extraTypeMappings, IContractResolver 解析器)" -
这是发生在多线程应用程序还是 Web 应用程序中?如果您使用导致问题的相同代码创建新的控制台应用程序,是否会出现同样的问题?