Form Designer Broken? Help. RRS feed

  • Question

  • ATTENTION MODERATOR: I cannot post this thread in the correct forum I want to, the Forum Category selection is not letting me. I need it posted in the Visual Studio, Windows Forms Designer, category. Can any of you help me?

    Hey guys,

    I am making an application in Windows Forms and am having a development stopping problem.

    When I make changes to my forms in the designer and try to compile I get thrown this error:

    "Error HRESULT E_FAIL has been returned from a call to a COM component."

    The error description that follows it is:

    at EnvDTE.CodeClass.get_Bases()
    at CParser.ParsePostFixOperator(
    CodeExpression pExpr)
    at CParser.ParseTerm()
    at CParser.ParseSubExpression(
    UInt32 iPrecedence, CodeObject pLeftOperand)
    at CParser.
    at CParser.ParseStatement()
    at CParser.ParseBlock()
    at CTextParser.CreateParseTree()
    at Microsoft.VisualC.
    CppMethodParser.DoParse(String buffer)
    at Microsoft.VisualC.
    CppCodeParser.OnMethodPopulateStatements(Object sender, EventArgs e)
    at System.CodeDom.
    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 Microsoft.VisualStudio.Design.
    Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

    Can anyone suggest a solution to this problem?

    Note that I have tried all of these ideas:
    1. Turn it on and off again.
    2. Start a new project and paste all the code into the new one.
    3. Try the code on another machine (I have done this on two, in two different versions of VS).
    4. Make sure all patches for VS are installed.
    This is VS 2008 fyi.

    Please can someone help me?
    Monday, April 20, 2009 4:16 PM


All replies