none
MENU COMMAND HANDLER ERROR RRS feed

  • Question

  • im facing error while viewing form design ... 

    the error details are 

    Instances of this error (1)
    1. Hide Call Stack
    at System.ComponentModel.Design.MenuCommandService.AddCommand(MenuCommand command)
    at System.Windows.Forms.Design.Behavior.BehaviorService.MenuCommandHandler.System.ComponentModel.Design.IMenuCommandService.AddCommand(MenuCommand command)
    at System.Windows.Forms.Design.CommandSet..ctor(ISite site)
    at System.Windows.Forms.Design.ControlCommandSet..ctor(ISite site)
    at System.Windows.Forms.Design.DocumentDesigner.Initialize(IComponent component)
    at System.Windows.Forms.Design.FormDocumentDesigner.Initialize(IComponent component)
    at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
    at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
    at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
    at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
    at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
    at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)
      
    Friday, January 24, 2020 1:32 PM

Answers

  • There are no useful lines in the stack trace to assist you with other than it appears that adding to a menu was an issue.

    The best option is to rollback using whatever source control (e.g. Azure DevOps, GitHub for instance) you have to an earlier version of the code.

    Next best option is to undo the last changes before having this error.



    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    • Marked as answer by Omi4u Thursday, February 6, 2020 6:16 AM
    Friday, January 24, 2020 1:37 PM
    Moderator