我试图运行ServiceStack示例项目。当我运行的Web客户端我收到以下错误:运行ServiceStack示例的System.BadImageFormatException。
{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.Examples\src\ServiceStack.Examples\
ServiceStack.Examples.ServiceInterface\Support\ConfigureDatabase.cs:line 23}
我已经下载了最新的System.Data.SQLite.dll文件,并试图使用它,但我仍然得到同样的错误。我在Windows 7 64位机器上运行64位VS2010。
我已经试过**任何CPU **,** ** 86,但仍然得到同样的错误:
关于这方面更多的信息可以被追踪。 – TheVillageIdiot 2011-01-12 06:40:29