我最初使用的是SQLite版本:1.0.77.0 (sqlite-netFx40-static-binary-bundle-Win32-2010-1.0.77.0),一切正常。但在将System.Data.SQLite.dll更新到版本1.0.82.0 (sqlite-netFx40-static-binary-bundle-Win32-2010-1.0.82.0)后,出现了以下错误信息:“无法打开数据库。连接字符串为:'datetimeformat=ISO8601;synchronous=Off;uri="file://C:/Users/username/Documents/data/test.db";version=3;journal mode=Truncate;default isolationlevel=ReadCommitted;pooling=True'; 错误信息:'System.InvalidOperationException: Invalid connection string: invalid URI”。我还尝试了使用file:///代替file://,但没有成功。请问有人能告诉我URI出了什么问题吗?为什么在v1.0.82.0中不再起作用,而在v1.0.77.0中却可以?(1.0.82.0 == 3.7.14) 可以查看http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki。
DataSource
字符串而不是Uri
,会发生什么? - zeFrenchy