Loading...

sqlite-users@sqlite.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

[sqlite] Reference error David Horne Mon Feb 20 03:01:34 2012

As a new sqlite user, I've written a simple program in VB (Visual Basic
2010 Express), adding a reference to sqlite.dll in the project file. The
following code builds without errors.

Imports System.Data.SQLite

Public Class Form1

    Private dbConn As SQLiteConnection

    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()

        'configure & open data connection
        dbConn = New SQLiteConnection("Data
Source=C:\Users\David\testJnl;Version=3;")

End Sub

I get the following runtime error -

System.InvalidOperationException was unhandled
  Message=An error occurred creating the form. See Exception.InnerException
for details.  The error is:

Could not load file or assembly 'System.Data.SQLite, Version=1.0.79.0,
Culture=neutral,

PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attempt was
made to load a program with

an incorrect format.
  Source=TestApp


I used this download - sqlite-netfx40-setup-bundle-x64-2010-1.0.79.0 - and
installed it without difficulty on a 64 bit Windows 7 PC.


Please help!
_______________________________________________
sqlite-users mailing list
[EMAIL PROTECTED]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users