Skip to content

Problem connecting to SQLite on x64 #72

@jespera

Description

@jespera

I have the following code in a .fs file:

let con = @"Data Source=some-path-to\test.db; Version=3"
let res = @"C:\another-path-to-x64ver\contrib\sqlite\lib\net45"

type sql = SqlDataProvider<ConnectionString = con,
                                   DatabaseVendor = Common.DatabaseProviderTypes.SQLITE, 
                                   ResolutionPath = res,
                                   UseOptionTypes = true>

The error I get in Visual Studio 2012 is :

The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: Could not load file or assembly 'file:...contrib\System.Data.SQLite.x64.1.0.89.0\lib\net45\System.Data.SQLite.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.

After a bit of searching around I saw this: http://pinksquirrellabs.com/post/2013/12/15/SqlProvider-SQLite-support-%28experimental%29.aspx

I have applied the suggested loadFromRemoteSources but that did not help. What does help though is to point to a x86-sqlite dll.

Is it (should it be) possible to use the SqlProvider on a x64-platform?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions