I got it passed this error by using different SQLite library and the ADO.NET
provider(an older one) 
its a bit confusing for a newbie. what is the newest I could use for vb net
2008?



Filip Navara-3 wrote:
> 
> What platform is set as target for the VB.NET code (x86 / x64 / Any CPU)?
> Which build of the SQLite library and the ADO.NET provider are you using?
> 
> On Wed, May 4, 2011 at 9:17 PM, kp2011 <kpaul...@nwrain.com> wrote:
>>
>> this is the vb net code I was running
>>
>> Dim f As New OpenFileDialog
>>            f.Filter = "SQLite 3 (*.db)|*.db|All Files|*.*"
>>            If f.ShowDialog() = DialogResult.OK Then
>>                Dim SQLconnect As New SQLite.SQLiteConnection()
>>                Dim SQLcommand As SQLite.SQLiteCommand
>>                SQLconnect.ConnectionString = "Data Source=" & f.FileName
>> &
>> ";"
>>                SQLconnect.Open()     this line produces the error
>>
>> this is the error
>> An attempt was made to load a program with an incorrect format.
>> (Exception
>> from HRESULT: 0x8007000B)
>> BadImageFormatException was unhandled
>>
>> do you know what did I do wrong?
>> Ken
>> --
>> View this message in context:
>> http://old.nabble.com/new-to-sqlite-rec%27d-BadImageFormatException-error-tp31544682p31544682.html
>> Sent from the SQLite mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> sqlite-users mailing list
>> sqlite-users@sqlite.org
>> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> 
> 

-- 
View this message in context: 
http://old.nabble.com/new-to-sqlite-rec%27d-BadImageFormatException-error-tp31544682p31550866.html
Sent from the SQLite mailing list archive at Nabble.com.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to