Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net 在WinRT中使用SQLite创建表:BadImageFormatException_Vb.net_Sqlite_Windows Runtime_Visual Studio 2013_Windows 8.1 - Fatal编程技术网

Vb.net 在WinRT中使用SQLite创建表:BadImageFormatException

Vb.net 在WinRT中使用SQLite创建表:BadImageFormatException,vb.net,sqlite,windows-runtime,visual-studio-2013,windows-8.1,Vb.net,Sqlite,Windows Runtime,Visual Studio 2013,Windows 8.1,我正在使用并向我的windows应用商店应用程序添加引用,并尝试创建一个数据库,如下所示: C:\Sqlite3>Sqlite3 mydata.db 接下来,尝试从my codebehind创建表,如图所示: Try Dim dbpath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "mydata.db") Using db = New SQLite.SQLit

我正在使用并向我的windows应用商店应用程序添加引用,并尝试创建一个数据库,如下所示:

C:\Sqlite3>Sqlite3 mydata.db
接下来,尝试从my codebehind创建表,如图所示:

 Try
     Dim dbpath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "mydata.db")
       Using db = New SQLite.SQLiteConnection(dbpath)
       ' Create the tables if they don't exist
        db.CreateTable(Of person)()
        db.Commit()
        db.Dispose()
        db.Close()
      End Using
     Dim line = New MessageDialog("Table Created")
     Await line.ShowAsync()
  Catch
End Try
现在它不创建任何表,并且得到一个异常,如下所示

有人能告诉我哪里出了问题吗?

来自:

SqlLite包含非托管代码,不能在64位上运行 操作系统,除非部署64位版本。快速修复: 项目+属性,构建选项卡,平台目标=x86


@阿琼:谢谢你的快速回答……真是不可思议:)