none
Apply Windows Layout Fails with Exception RRS feed

  • Question

  • Hi,

    I am creating a Visual Studio Extensibility application. I have developed my own Extensions and installing them in my extensibility application. Visual Studio provides option to Save Window Layout and apply them. But this feature is not working in my application. I am using Visual Studio 2015 Integration for my application. 

    My error is,

    An exception was encountered while constructing the content of this frame.  This information is also logged in "C:\Users\I19147\AppData\Roaming\Microsoft\AppEnv\14.0\ActivityLog.xml".

    Exception details:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at VSDebugCoreUI.Utilities.DebuggerServiceHelper.GetExceptions(Nullable`1 parent)
       at VSDebugCoreUI.ToolWindows.ExceptionSettings.Controls.ExceptionSettingsControl.GetDefaultExceptionSettings()
       at VSDebugCoreUI.ToolWindows.ExceptionSettings.Controls.ExceptionSettingsControl.InitializeExceptionSettingsList()
       at VSDebugCoreUI.ToolWindows.ExceptionSettings.Controls.ExceptionSettingsControl..ctor()
       at VSDebugCoreUI.ToolWindows.ExceptionSettings.ExceptionSettingsToolWindow..ctor()
       --- End of inner exception stack trace ---
       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
       at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at System.Activator.CreateInstance(Type type)
       at Microsoft.VisualStudio.Shell.Package.InstantiateToolWindow(Type toolWindowType)
       at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags)
       at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool)
       at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
       at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Guid& toolWindowType, Int32 id)
       at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid& toolWindowType, UInt32 id)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()

    Wednesday, January 2, 2019 6:28 AM