Hello, I'm having a problem using couchbase lite on Windows 8.1 32bit. I 
have a C# WPF application, I downloaded couchbase lite from nuget and added 
it to my solution on visual studio. When I try to create the database file, 
I get the error: Unable to create a storage engine, fatal error. Here's the 
code:

 
public void openDb()
        {
            var dirInfo = Directory.CreateDirectory(AppDomain.CurrentDomain.
BaseDirectory);
            Manager manager;
            Database db;
            try
            {
                manager = new Manager(dirInfo, Manager.DefaultOptions);
                db = manager.GetExistingDatabase("db");
                if (db == null)
                {
                    db = manager.GetDatabase("db"); //error here
                }
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
            }
        }

I took a look at the source code and included it in my project just to 
check where the error was coming from and when it's executing the code 
inside the SqlitePCLRawStorageEngine class there's an open(string path); 
method which shows me the error:

var errMessage = "Cannot open Sqlite Database at pth {0}".Fmt(path);

A few lines after (still inside the open(string path); method), it throws 
an exception on this line:

var status = raw.sqlite3_open_v2(Path, out db, flags, null);

I noticed that the db parameter is null here, I don't know if that's 
intended or not but the exception says:
catch (Exception ex)
           {
                Log.E(Tag, "Error opening the Sqlite connection using 
connection String: {0}".Fmt(path), ex);
                result = false;
            }

The exception "ex" says: Unable to load DLL 'sqlite3': The specified module 
could not be found. (Exception from HRESULT: 0x8007007E)

Am I doing something wrong or does Couchbase Lite not support Windows 
applications? Is Couchbase Lite for mobile apps only?

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/1952277a-f528-4d45-921a-e0b6f8778b2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to