Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将RavenDB数据库从本地主机同步到联机服务器时出错_Ravendb_Ravendb Studio - Fatal编程技术网

将RavenDB数据库从本地主机同步到联机服务器时出错

将RavenDB数据库从本地主机同步到联机服务器时出错,ravendb,ravendb-studio,Ravendb,Ravendb Studio,我正在尝试将本地RavenDB数据库与在线RavenDB数据库同步,但未进行管理。我正在做以下工作: 登录到本地服务器RavenDB用户界面 转到任务部分 导出数据库 将文件存储在文件系统的某个位置 登录到在线服务器RavenDB用户界面 转到任务部分 点击导入数据库 选择从本地数据库导出保存的文件 我得到以下错误: 当我打开“显示最近的错误”时,我会看到以下附带的屏幕截图: 知道我做错了什么吗?是否有其他方法可以将本地RavenDB服务器与在线RavenDB服务器同步 上述错误分别包含以下

我正在尝试将本地RavenDB数据库与在线RavenDB数据库同步,但未进行管理。我正在做以下工作:

  • 登录到本地服务器RavenDB用户界面
  • 转到任务部分
  • 导出数据库
  • 将文件存储在文件系统的某个位置
  • 登录到在线服务器RavenDB用户界面
  • 转到任务部分
  • 点击导入数据库
  • 选择从本地数据库导出保存的文件
  • 我得到以下错误:

    当我打开“显示最近的错误”时,我会看到以下附带的屏幕截图:

    知道我做错了什么吗?是否有其他方法可以将本地RavenDB服务器与在线RavenDB服务器同步

    上述错误分别包含以下全部详细信息:

    无效的跨线程访问

       at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Func`2 func)
       at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Action`1 action)
       at Raven.Studio.Commands.ImportDatabaseCommand.ExecuteInternal()
       at Raven.Studio.Commands.ImportDatabaseCommand.Execute(Object parameter)
       at System.Windows.Controls.Primitives.ButtonBase.ExecuteCommand()
       at System.Windows.Controls.Primitives.ButtonBase.OnClick()
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
    
    
    
    Client side exception:
    System.UnauthorizedAccessException: Invalid cross-thread access.
       at MS.Internal.XcpImports.CheckThread()
       at System.Windows.Controls.ItemCollection.GetValueInternal(DependencyProperty dp)
       at System.Windows.PresentationFrameworkCollection`1.get_CountImpl()
       at System.Windows.PresentationFrameworkCollection`1.get_Count()
       at System.Windows.Controls.ItemContainerGenerator.TranslateExternalIndexToInternalIndex(Int32 index)
       at System.Windows.Controls.ItemContainerGenerator.OnItemAdded(Object item, Int32 index, Boolean suppressEvent)
       at System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.ICollectionChangedListener.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
       at System.Windows.Controls.WeakCollectionChangedListener.SourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.ItemCollection.NotifyCollectionChanged(NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.ItemCollection.System.Windows.Controls.ICollectionChangedListener.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.WeakCollectionChangedListener.SourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
       at System.Collections.ObjectModel.Collection`1.Add(T item)
       at Raven.Studio.Models.TaskModel.ReportError(String errorMsg)
       at Raven.Studio.Commands.ImportDatabaseCommand.<>c__DisplayClass8.<ExecuteInternal>b__1()
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
    
    位于Raven.Studio.Infrastructure.InvocationExtensions.Catch(任务父级,Func`2 Func)
    在Raven.Studio.Infrastructure.InvocationExtensions.Catch(任务父级,操作`1操作)
    在Raven.Studio.Commands.ImportDatabaseCommand.ExecuteInternal()中
    位于Raven.Studio.Commands.ImportDatabaseCommand.Execute(对象参数)
    在System.Windows.Controls.Primitives.ButtonBase.ExecuteCommand()中
    在System.Windows.Controls.Primitives.ButtonBase.OnClick()中
    在System.Windows.Controls.Button.OnClick()中
    在System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
    在System.Windows.Controls.Control.OnMouseLeftButtonUp(控件ctrl,事件参数e)
    在MS.Internal.JoltHelper.firevent(IntPtr unmanagedObj、IntPtr unmanagedobjars、Int32 argsTypeIndex、Int32 actualgstypeindex、String eventName、UInt32标志)
    客户端异常:
    System.UnauthorizedAccessException:无效的跨线程访问。
    在MS.Internal.XcpImports.CheckThread()处
    位于System.Windows.Controls.ItemCollection.GetValueInternal(DependencyProperty dp)
    位于System.Windows.PresentationFrameworkCollection`1.get_CountImpl()
    位于System.Windows.PresentationFrameworkCollection`1.get_Count()
    位于System.Windows.Controls.ItemContainerGenerator.TranslateExternalIndex(Int32索引)
    位于System.Windows.Controls.ItemContainerGenerator.OnItemAdded(对象项,Int32索引,布尔suppressEvent)
    位于System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.ICollectionChangedListener.OnCollectionChanged(对象发送方,NotifyCollectionChangedEventArgs参数)
    位于System.Windows.Controls.WeakCollectionChangedListener.SourceCollectionChanged(对象发送者,NotifyCollectionChangedEventArgs e)
    位于System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(对象发送方,NotifyCollectionChangedEventArgs e)
    位于System.Windows.Controls.ItemCollection.NotifyCollectionChanged(NotifyCollectionChangedEventArgs e)
    位于System.Windows.Controls.ItemCollection.System.Windows.Controls.ICollectionChangedListener.OnCollectionChanged(对象发送方,NotifyCollectionChangedEventArgs e)
    位于System.Windows.Controls.WeakCollectionChangedListener.SourceCollectionChanged(对象发送者,NotifyCollectionChangedEventArgs e)
    位于System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
    位于System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32索引,T项)
    位于System.Collections.ObjectModel.Collection`1.Add(T项)
    在Raven.Studio.Models.TaskModel.ReportError(字符串errorMsg)中
    在Raven.Studio.Commands.ImportDatabaseCommand.c_udisplayClass8.b_u1()中
    在System.Threading.Tasks.Task.InnerInvoke()中
    在System.Threading.Tasks.Task.Execute()中
    

    值不能为null

       at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Func`2 func)
       at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Action`1 action)
       at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent)
       at Raven.Studio.Infrastructure.Execute.OnTheUI(Action action)
       at Raven.Studio.Infrastructure.InvocationExtensions.<>c__DisplayClass30.<Catch>b__2e(Task task)
       at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
       at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
       at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
       at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    
    
    
    Client side exception:
    System.ArgumentNullException: Value cannot be null.
       at System.Windows.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObject value)
       at System.Windows.Controls.UIElementCollection.AddInternal(UIElement value)
       at System.Windows.Controls.ItemsControl.AddVisualChild(Int32 containerIndex, DependencyObject container, Boolean needPrepareContainer)
       at System.Windows.Controls.ItemsControl.AddContainerForPosition(GeneratorPosition position)
       at System.Windows.Controls.ItemsControl.OnItemsChangedHandler(Object sender, ItemsChangedEventArgs args)
       at System.Windows.Controls.ItemContainerGenerator.OnItemAdded(Object item, Int32 index, Boolean suppressEvent)
       at System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.ICollectionChangedListener.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
       at System.Windows.Controls.WeakCollectionChangedListener.SourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.ItemCollection.NotifyCollectionChanged(NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.ItemCollection.System.Windows.Controls.ICollectionChangedListener.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.WeakCollectionChangedListener.SourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
       at System.Collections.ObjectModel.Collection`1.Add(T item)
       at Raven.Studio.Models.TaskModel.ReportError(Exception exception)
       at Raven.Studio.Commands.ImportDatabaseCommand.<WriteIndexes>b__b(AggregateException exception)
       at Raven.Studio.Infrastructure.InvocationExtensions.<>c__DisplayClass2c.<Catch>b__2b(AggregateException e)
       at Raven.Studio.Infrastructure.InvocationExtensions.<>c__DisplayClass30.<>c__DisplayClass32.<Catch>b__2f()
       at AsyncCtpThreadingExtensions.<>c__DisplayClass4.<InvokeAsync>b__3()
    
    at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Func`2 func)
       at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent, Action`1 action)
       at Raven.Studio.Infrastructure.InvocationExtensions.Catch(Task parent)
       at Raven.Studio.Infrastructure.Execute.OnTheUI(Action action)
       at Raven.Studio.Features.Tasks.ImportTask.<get_Action>b__0(String line)
       at Raven.Studio.Commands.ImportDatabaseCommand.<>c__DisplayClass8.<ExecuteInternal>b__1()
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
       at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
       at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
       at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    
    **Client side exception:**
    
    System.ArgumentNullException: Value cannot be null.
       at System.Windows.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObject value)
       at System.Windows.Controls.UIElementCollection.AddInternal(UIElement value)
       at System.Windows.Controls.ItemsControl.AddVisualChild(Int32 containerIndex, DependencyObject container, Boolean needPrepareContainer)
       at System.Windows.Controls.ItemsControl.AddContainerForPosition(GeneratorPosition position)
       at System.Windows.Controls.ItemsControl.OnItemsChangedHandler(Object sender, ItemsChangedEventArgs args)
       at System.Windows.Controls.ItemContainerGenerator.OnItemAdded(Object item, Int32 index, Boolean suppressEvent)
       at System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.ICollectionChangedListener.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
       at System.Windows.Controls.WeakCollectionChangedListener.SourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.ItemCollection.NotifyCollectionChanged(NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.ItemCollection.System.Windows.Controls.ICollectionChangedListener.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.WeakCollectionChangedListener.SourceCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
       at System.Collections.ObjectModel.Collection`1.Add(T item)
       at Raven.Studio.Features.Tasks.ImportTask.<>c__DisplayClass2.<get_Action>b__1()
       at AsyncCtpThreadingExtensions.<>c__DisplayClass4.<InvokeAsync>b__3()
    
    位于Raven.Studio.Infrastructure.InvocationExtensions.Catch(任务父级,Func`2 Func)
    在Raven.Studio.Infrastructure.InvocationExtensions.Catch(任务父级,操作`1操作)
    位于Raven.Studio.Infrastructure.InvocationExtensions.Catch(任务父级)
    在Raven.Studio.Infrastructure.Execute.OnTheUI(Action)上
    在Raven.Studio.Infrastructure.InvocationExtensions.c__DisplayClass30.b__2e(任务)
    在System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()中
    在System.Threading.Tasks.Task.Execute()中
    位于System.Threading.Tasks.Task.ExecutionContextCallback(对象obj)
    在System.Threading.ExecutionContext.Run(ExecutionContext ExecutionContext,ContextCallback回调,对象状态,布尔保存SyncCTX)
    位于System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task和currentTaskSlot)
    在System.Threading.Tasks.Task.ExecuteEntry(布尔bPreventDoubleExecution)
    位于System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()处
    在System.Threading.ThreadPoolWorkQueue.Dispatch()中
    在System.Threading.\u ThreadPoolWaitCallback.PerformWaitCallback()中
    客户端异常:
    System.ArgumentNullException:值不能为null。
    位于System.Windows.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObject值)
    位于System.Windows.Controls.UIElementCollection.AddInternal(UIElement值)
    在System.Windows.Controls.ItemsControl.AddVisualChild(Int32 containerIndex、DependencyObject容器、Boolean needPrepareContainer)
    在System.Windows.Controls.ItemsControl.AddContainerFormation(GeneratorPosition位置)处
    位于System.Windows.Controls.ItemsControl.OnItemChangedHandler(对象发送方,ItemsChangedEventArgs参数)
    位于System.Windows.Controls.ItemContainerGenerator.OnItemAdded(对象项,Int32索引,布尔suppressEvent)
    位于System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.ICollectionChangedListener.OnCollectionChanged(对象发送方,NotifyCollectionChangedEventArgs参数)
    位于System.Windows.Controls.WeakCollectionChangedListener.SourceCollectionChanged(对象发送者,NotifyCollectionChangedEventArgs e)
    位于System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Obj