运行ServiceStack示例时出现System.BadImageFormatException。

我正在尝试运行ServiceStack示例项目。当我运行Web客户端时,我收到以下错误:
{System.BadImageFormatException: An attempt was made to load a program with an 
    incorrect format. (Exception from HRESULT: 0x8007000B)
    at Mono.Data.Sqlite.UnsafeNativeMethods.sqlite3_open_v2(Byte[] utf8Filename, 
    IntPtr& db, Int32 flags, IntPtr vfs)
    at Mono.Data.Sqlite.SQLite3.Open(String strFilename, SQLiteOpenFlagsEnum 
    flags, Int32 maxPoolSize, Boolean usePool)
    at Mono.Data.Sqlite.SqliteConnection.Open()
    at ServiceStack.OrmLite.OrmLiteConnection.Open()
    at ServiceStack.OrmLite.OrmLiteConnectionFactory.OpenDbConnection()
    at ServiceStack.Examples.ServiceInterface.Support.ConfigureDatabase
         .Init(IDbConnectionFactory connectionFactory) 
    in E:ServiceStack.ExamplessrcServiceStack.Examples
    ServiceStack.Examples.ServiceInterfaceSupportConfigureDatabase.cs:line 23}
我已经下载了最新的System.Data.SQLite.dll文件并尝试使用它,但我仍然遇到同样的错误。我在Windows 7 64位盒子上运行64位VS2010。     
已邀请:
将主项目的平台目标设置为x86以解决此问题。这可以在Project ... - > Properties - > Build下完成。 SqlLite很可能是一个32位组件,并且为了能够加载它,您的应用程序也需要是一个32位应用程序(64位进程不能加载32位组件,反之亦然)。     
尝试使用64位IIS / PC加载32位sqlite.dll时,这是一个问题。 要使其工作,您需要通过以下方式为您的AppDomain启用“32位应用程序”: 打开IIS管理器 单击应用程序池上的“高级设置”。 将启用32位应用程序设置为true 如需更及时的回复,请随时向ServiceStack Google Group发送任何ServiceStack相关问题的链接。 更新:我忘了添加:您还需要最顶层的项目(即您的ASP.NET Web应用程序)将其构建配置设置为x86(32位)。 如果您下载最新版本的ServiceStack.Examples(v2.01),现在应该可以在64位服务器上运行。 可以跟踪有关此内容的更多信息: https://groups.google.com/d/topic/servicestack/EUPqF2jI4ig/discussion     

要回复问题请先登录注册