本文介绍了TM 2016在View->默认布局上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Analysis View中选择View->默认窗口布局时出现系统错误。我选择它是因为我看不到威胁列表。下面的异常堆栈。
I am getting system error when selecting View->Default window layout while in Analysis View. I selected it because I could not see the Threat List. Exception stack below.
威胁建模工具4,汇编版本'TMT7,Version = 7.0.8000.0,Culture = neutral,PublicKeyToken = 69c3241e6f0468ca' ,今天是'2015年11月10日星期二5:10:35'崩溃信息:
System.ArgumentNullException:值不能为空。
参数名称:dockingView
在Microsoft.VisualStudio.PlatformUI.Shell.DockOperations.Dock(ViewElement targetView,ViewElement dockingView,DockDirection dockDirection)
在ThreatModeling.DashboardControl.ResetWindowLayout()
在ThreatModeling.DashboardControl.ChangeEventHandler(Object sender,SubscribableEventArgs args)
在ThreatModeling.Model.SubscribableEventDelegate.Invoke(Object sender,SubscribableEventArgs args)
在ThreatModeling.ViewModel.DashboardViewModel.OnChange(SubscribableEventClass eventClass,Dictionary`2 args)
at ThreatModeling.ViewModel.DashboardViewModel.ObjectModelEventInterceptor(Object sender,ObjectModelChangeEventArgs args)
at ThreatModeling.ViewModel.DashboardViewModel.ObjectModel_ObjectModelChanged(Object sender,ObjectModelChangeEventArgs args)
在ThreatModeling.Model.ObjectModelChangeDelegate.Invoke(Object sender,ObjectModelChangeEventArgs args)
在ThreatModeling.Model.ObjectModel.OnObjectModelChange(ObjectModelChangeCause cause,Object objectOfChange)
在ThreatModeling.ViewModel.ResetWindowLayoutCommand.Execute(对象参数)
在MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource,Boolean userInitiated)
在System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
在System.Windows.Threading.ExceptionWrapper.InternalRealCall(委托回调,对象args,Int32 numArgs)
在System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,Delegate callback,Object args,Int32 numArgs,Delegate catchHandler)
System.ArgumentNullException:值不能为空。
参数名称:dockingView
在Microsoft.VisualStudio.PlatformUI.Shell.DockOperations.Dock(ViewElement targetView,ViewElement dockingView,DockDirection dockDirection)
在ThreatModeling.DashboardControl.ResetWindowLayout()
在ThreatModeling.DashboardControl.ChangeEventHandler(Object sender,SubscribableEventArgs args)
在ThreatModeling.Model.SubscribableEventDelegate.Invoke(Object sender,SubscribableEventArgs args)
在ThreatModeling.ViewModel.DashboardViewModel.OnChange(SubscribableEventClass eventClass,Dictionary`2 args)
at ThreatModeling.ViewModel.DashboardViewModel.ObjectModelEventInterceptor(Object sender,ObjectModelChangeEventArgs args)
at ThreatModeling.ViewModel.DashboardViewModel.ObjectModel_ObjectModelChanged(Object sender,ObjectModelChangeEventArgs args)
在ThreatModeling.Model.ObjectModelChangeDelegate.Invoke(Object sender,ObjectModelChangeEventArgs args)
在ThreatModeling.Model.ObjectModel.OnObjectModelChange(ObjectModelChangeCause cause,Object objectOfChange)
在ThreatModeling.ViewModel.ResetWindowLayoutCommand.Execute(对象参数)
在MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource,Boolean userInitiated)
在System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
在System.Windows.Threading.ExceptionWrapper.InternalRealCall(委托回调,对象args,Int32 numArgs)
在System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,Delegate callback,Object args,Int32 numArgs,Delegate catchHandler)
Threat Modeling Tool 4, Assembly version 'TMT7, Version=7.0.8000.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca', today is 'Tuesday, November 10, 2015 5:10:35'Crash information:
System.ArgumentNullException: Value cannot be null.
Parameter name: dockingView
at Microsoft.VisualStudio.PlatformUI.Shell.DockOperations.Dock(ViewElement targetView, ViewElement dockingView, DockDirection dockDirection)
at ThreatModeling.DashboardControl.ResetWindowLayout()
at ThreatModeling.DashboardControl.ChangeEventHandler(Object sender, SubscribableEventArgs args)
at ThreatModeling.Model.SubscribableEventDelegate.Invoke(Object sender, SubscribableEventArgs args)
at ThreatModeling.ViewModel.DashboardViewModel.OnChange(SubscribableEventClass eventClass, Dictionary`2 args)
at ThreatModeling.ViewModel.DashboardViewModel.ObjectModelEventInterceptor(Object sender, ObjectModelChangeEventArgs args)
at ThreatModeling.ViewModel.DashboardViewModel.ObjectModel_ObjectModelChanged(Object sender, ObjectModelChangeEventArgs args)
at ThreatModeling.Model.ObjectModelChangeDelegate.Invoke(Object sender, ObjectModelChangeEventArgs args)
at ThreatModeling.Model.ObjectModel.OnObjectModelChange(ObjectModelChangeCause cause, Object objectOfChange)
at ThreatModeling.ViewModel.ResetWindowLayoutCommand.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
System.ArgumentNullException: Value cannot be null.
Parameter name: dockingView
at Microsoft.VisualStudio.PlatformUI.Shell.DockOperations.Dock(ViewElement targetView, ViewElement dockingView, DockDirection dockDirection)
at ThreatModeling.DashboardControl.ResetWindowLayout()
at ThreatModeling.DashboardControl.ChangeEventHandler(Object sender, SubscribableEventArgs args)
at ThreatModeling.Model.SubscribableEventDelegate.Invoke(Object sender, SubscribableEventArgs args)
at ThreatModeling.ViewModel.DashboardViewModel.OnChange(SubscribableEventClass eventClass, Dictionary`2 args)
at ThreatModeling.ViewModel.DashboardViewModel.ObjectModelEventInterceptor(Object sender, ObjectModelChangeEventArgs args)
at ThreatModeling.ViewModel.DashboardViewModel.ObjectModel_ObjectModelChanged(Object sender, ObjectModelChangeEventArgs args)
at ThreatModeling.Model.ObjectModelChangeDelegate.Invoke(Object sender, ObjectModelChangeEventArgs args)
at ThreatModeling.Model.ObjectModel.OnObjectModelChange(ObjectModelChangeCause cause, Object objectOfChange)
at ThreatModeling.ViewModel.ResetWindowLayoutCommand.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
推荐答案
这篇关于TM 2016在View->默认布局上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!