[Mono-list] Single .dll targeted at multi platform but using sqlite, possible?

KeithBoynton keithboynton at flaredesign.co.uk
Thu Aug 23 18:53:13 UTC 2012

 matthieu Barthélemy wrote
> Can you post the code (of the part of it) that throws this error?

Sure, here's the bit that appears to be causing the problem....

public DatabaseManager(String inputFile)
            _dbConnectionString = String.Format("Data
Source={0};Version=3;", inputFile);
            LogWriter.Debug("Connecting to database [" + _dbConnectionString
+ "]");
            _databaseConnection = new SqliteConnection(_dbConnectionString);

Here's what get's output by that log line..
Connecting to database [Data Source=data.db;Version=3;]

For the record here's the combination of connection strings I've tried...
_dbConnectionString = String.Format("Data Source={0}", inputFile);
_dbConnectionString = String.Format("Data Source={0};Version=3", inputFile);
_dbConnectionString = String.Format("Data Source={0};", inputFile);
_dbConnectionString = String.Format("Data Source={0};Version=3;",
_dbConnectionString = String.Format("Data Source={0};Version=3;New=True;",
_dbConnectionString = String.Format("URI=file:{0};", inputFile);
_dbConnectionString = String.Format("URI=file:{0};Version=3;", inputFile);
_dbConnectionString = String.Format("URI={0};", inputFile);
_dbConnectionString = String.Format("URI={0};Version=3;", inputFile);

I'll be honest I'm flumoxed !

View this message in context: http://mono.1490590.n4.nabble.com/Single-dll-targeted-at-multi-platform-but-using-sqlite-possible-tp4656335p4656369.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list