首页 文章

Winven应用程序与RavenDB有错误:System.InvalidOperationException:无法打开事务存储

提问于
浏览
0

我有一个非常简单的Winforms应用程序和RavenDB数据库 . 它已经工作了一年,直到昨天(2015年1月19日) . 它现在抛出错误:System.InvalidOperationException:无法打开事务存储

该应用程序存储在我的OneDrive文件夹中 - 这是一个似乎一直在运行的准自动备份解决方案 . 昨天它爆炸了 . 我经常使用并位于OneDrive上的excel文件也存在文件访问问题,我不得不开始使用新副本 .

它似乎与之前应用的Windows 8.1自动更新有关 .

我尝试查看此错误的其他帖子中建议的权限问题 . 他们没有任何区别 .

这是完整的堆栈跟踪 . 希望有人可以提供帮助 . 注意我出于隐私原因删除了文件夹名称 .

System.InvalidOperationException: Could not open transactional storage: C:\Users\...\Data\Data ---> Microsoft.Isam.Esent.Interop.EsentInvalidLogSequenceException: Timestamp in next log does not match expected
at Microsoft.Isam.Esent.Interop.Api.Check(Int32 err)
at Microsoft.Isam.Esent.Interop.Api.JetInit(JET_INSTANCE& instance)
at Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator uuidGenerator, OrderedPartCollection`1 documentCodecs)
--- End of inner exception stack trace ---
at Raven.Storage.Esent.TransactionalStorage.Initialize(IUuidGenerator uuidGenerator, OrderedPartCollection`1 documentCodecs)
at Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration, TransportState transportState)
at Raven.Client.Embedded.EmbeddableDocumentStore.InitializeInternal()
at Raven.Client.Document.DocumentStore.Initialize()
at ScanService.PostsDatabase.InitializeDocumentStore() in c:\...\PostsDatabase.cs:line 59
at ScanService.PostsDatabase.Retrieve(Int32 maxToReturn) in c:\...\PostsDatabase.cs:line 85
at ScanService.PostsTimer.Start() in c:\...\PostsTimer.cs:line 106
at ScanFormsUI.Scanner.StartPostsTimer() in c:\Users\...\Scanner.cs:line 72
at ScanFormsUI.Scanner.Scanner_Load(Object sender, EventArgs e) in c:\Users\...\ScanFormsUI\Scanner.cs:line 37
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
ScanFormsUI
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/.../bin/Debug/ScanFormsUI.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ScanService
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/.../bin/Debug/ScanService.EXE
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Raven.Client.Lightweight
Assembly Version: 2.5.0.0
Win32 Version: 2.5.2851.0
CodeBase: file:///C:/.../bin/Debug/Raven.Client.Lightweight.DLL
----------------------------------------
Raven.Client.Embedded
Assembly Version: 2.5.0.0
Win32 Version: 2.5.2851.0
CodeBase: file:///C:/../bin/Debug/Raven.Client.Embedded.DLL
----------------------------------------
Raven.Abstractions
Assembly Version: 2.5.0.0
Win32 Version: 2.5.2851.0
CodeBase: file:///C:/../bin/Debug/Raven.Abstractions.DLL
----------------------------------------
Raven.Database
Assembly Version: 2.5.0.0
Win32 Version: 2.5.2851.0
CodeBase: file:///C:/Users/.../bin/Debug/Raven.Database.DLL
----------------------------------------
System.ComponentModel.Composition
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll
----------------------------------------
System.Runtime.Caching
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Caching/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Caching.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 12.0.20806.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34212 built by: FX452RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Lucene.Net
Assembly Version: 3.0.3.0
Win32 Version: 3.0.3.0
CodeBase: file:///C:/.../bin/Debug/Lucene.Net.DLL
----------------------------------------
Esent.Interop
Assembly Version: 1.7.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///C:/.../bin/Debug/Esent.Interop.DLL
----------------------------------------
Lucene.Net.Contrib.Spatial.NTS
Assembly Version: 3.0.3.0
Win32 Version: 3.0.3
CodeBase: file:///C:/.../bin/Debug/Lucene.Net.Contrib.Spatial.NTS.DLL
----------------------------------------
Spatial4n.Core.NTS
Assembly Version: 0.3.0.0
Win32 Version: 0.3.0.0
CodeBase: file:///C:/.../bin/Debug/Spatial4n.Core.NTS.DLL
----------------------------------------
ICSharpCode.NRefactory.CSharp
Assembly Version: 5.0.0.0
Win32 Version: 5.2.0
CodeBase: file:///C:/.../bin/Debug/ICSharpCode.NRefactory.CSharp.DLL
----------------------------------------
ICSharpCode.NRefactory
Assembly Version: 5.0.0.0
Win32 Version: 5.2.0
CodeBase: file:///C:/.../bin/Debug/ICSharpCode.NRefactory.DLL
----------------------------------------
System.ServiceModel
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
MetadataViewProxies_6961f4c8-f3b1-4967-a9af-abab52c56946
Assembly Version: 0.0.0.0
Win32 Version: 4.0.30319.33440
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

1 回答

  • 0

    你不能这样做 . 它是一个数据库,它需要一致的文件系统 . 我确信由于存储器的一些短暂故障导致数据被冲洗 .

    运行eseutil /r可能会抢救您的数据库 .

    我喜欢OneDrive,但有时我会遇到常规办公文件的错误,你无法在其上运行实时数据库 . 如果您想通过OneDrive传递数据,最好的办法是将其导出然后导入 .

相关问题