我試圖運行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