2012-01-28 112 views
1

所以我使用這些說明安裝RavendDB一個Win2003的服務器上:RavenDB錯誤:日誌文件的版本與Jet版本兼容

http://old.ravendb.net/documentation/docs-deployment-iis

,我得到以下錯誤,當我嘗試瀏覽到現場。有任何想法嗎?

Version of log file is not compatible with Jet version 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Microsoft.Isam.Esent.Interop.EsentBadLogVersionException: Version of log file is not compatible with Jet version 

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace: 


[EsentBadLogVersionException: Version of log file is not compatible with Jet version] 
    Microsoft.Isam.Esent.Interop.Api.Check(Int32 err) in C:\Work\ravendb\SharedLibs\Sources\managedesent-61618\EsentInterop\Api.cs:2739 
    Microsoft.Isam.Esent.Interop.Api.JetInit(JET_INSTANCE& instance) in C:\Work\ravendb\SharedLibs\Sources\managedesent-61618\EsentInterop\Api.cs:131 
    Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator uuidGenerator) in c:\Builds\raven\Raven.Storage.Esent\TransactionalStorage.cs:207 

[InvalidOperationException: Could not open transactional storage: C:\Inetpub\wwwroot\RavenDB\Data\Data] 
    Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator uuidGenerator) in c:\Builds\raven\Raven.Storage.Esent\TransactionalStorage.cs:220 
    Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration) in c:\Builds\raven\Raven.Database\DocumentDatabase.cs:151 
    Raven.Web.ForwardToRavenRespondersFactory.Init() in c:\Builds\raven\Raven.Web\ForwardToRavenRespondersFactory.cs:62 
    Raven.Web.RavenDbStartupAndShutdownModule.<Init>b__0(Object sender, EventArgs args) in c:\Builds\raven\Raven.Web\BootStrapper.cs:12 
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +213 
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +76 
+0

您是否在不同的操作系統上運行RavenDB,然後將其轉移到Windows Server 2003?或者你只在2003年運行它? – 2012-01-28 16:25:41

+0

我從我的win7桌面轉移。我是否必須從頭開始?我如何傳輸我創建的數據庫? – legion 2012-01-28 16:46:01

回答

7

RavenDB數據存儲在底層使用Esent。因此,它不能跨操作系統版本移植。即如果您在一個版本的操作系統上創建商店,則只需將文件複製到另一版本即可。

您可以使用RavenDB smuggler工具導入/導出數據。或者手動完成。

+0

@legion如果這個答案適合你,你會考慮將它標記爲接受的答案嗎?這樣可以幫助其他人查看問題。 – 2012-01-29 19:27:50