Ошибка RavenDB: версия файла журнала не совместима с версией Jet - PullRequest
1 голос
/ 28 января 2012

Итак, я установил RavendDB на сервер Win2003, используя следующие инструкции:

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

1 Ответ

7 голосов
/ 28 января 2012

В хранилище данных RavenDB используется Esent под крышкой.В результате это не переносимо через версии ОС.Т.е., если вы создаете хранилище в одной версии ОС, оно не обязательно будет работать в другой только путем копирования файлов.

Для импорта / можно использовать инструмент RavenDB smuggler экспортировать данные.Или сделай это вручную.

...