Is it possible you're trying to load a 64 bit .dll with a 32 bit .exe? Or visa versa.
Joe Mokos Sr. Software Engineer OPNET Technologies, Inc. jmo...@opnet.com (603) 598-2582 x377 -----Original Message----- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of kp2011 Sent: Wednesday, May 04, 2011 3:18 PM To: sqlite-users@sqlite.org Subject: [sqlite] new to sqlite rec'd BadImageFormatException error 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-tp 31544682p31544682.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