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.ParseNonDeclarationStatement()
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.CodeMemberMethod.get_Statements()
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:
- Turn it on and off again.
- Start a new project and paste all the code into the new one.
- Try the code on another machine (I have done this on two, in two different versions of VS).
- Make sure all patches for VS are installed.
This is VS 2008 fyi.
Please can someone help me?