Designer problem

Hello, I have a little problem... I can't design my form anymore. It happened just like that without me doing any changes and now I can't view the designer. My application runs ok, though. I get two kinds of errors. Some times I get this:


One or more errors encountered while loading the designer.The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Clicking on each error will take you to the line of code that caused it.

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

at EnvDTE.CodeTypeRef.get_AsFullName()
at Microsoft.VisualC.CppCodeParser.OnTypePopulateMembers(Object sender, EventArgs e)
at System.CodeDom.CodeTypeDeclaration.get_Members()
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)


And sometimes I get another error message concerning the Code Parser.
What should I do

With Thanks,
                    Gal Beniamini.


Answer this question

Designer problem

  • Uttam5555

    Is there no other way Is there maybe a fix I noticed that all the problems occured after I added another form to my projects but when I remove the extra form the problem does not fix itself.

    With Thanks,
                        Gal Beniamini.

  • Precis

    Please try the RC build. Beta and CTP releases had many problems with IntelliSense parsing which negatively affected the ability to design forms using the designer.

    Thanks,



  • Big Bill

    Hello Kenny, I'm using Visual Studio 2005 June CTP.
    This problem is not a one time problem and tends to repeat itself once my code grows larger, I also get another error from time to time saying:

    One or more errors encountered while loading the designer.The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Clicking on each error will take you to the line of code that caused it.

    CppCodeParser Error:
    Hide

    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)

    Could you please redirect me to someone who might know how to solve this issue

    With Thanks,
                       Gal Beniamini.

  • NickBarclay

    Ok, I've found a way around it.

    On the project, Add a new windows form and open the designer for it (call it what you like).

    Save and close the project. Exit VC++ just to be safe.

    Re-open the file, and hey presto, your original designer should appear.

    It appears to be a very annoying bug


  • Victor Ramiro

    Which version of Visual C++ are you using

    Prior to the RC build of Visual C++ 2005, the Windows Forms Designer has been pretty horrible. The RC build behaves a lot better, although it still crashes often enough and the code it generates is pretty ugly. As much as I like Visual C++, I tend to recommend that developers use Visual C# for Windows Forms development calling Visual C++ built assemblies as needed. The Visual C# Forms Designer is much more mature. The two languages use the same design-time component but the backend code generator for C# is much better.

    Sorry I can’t provide any more help.
     
    Cheers,

    Kenny Kerr
    Microsoft MVP

    http://weblogs.asp.net/kennykerr/


  • Designer problem