Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Unable to open form designer...
 

Unable to open form designer...

I just got up today, loaded up my project, and one of the forms won't open and gives me this error:

atMicrosoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.CreateQuoteExpression(XmlElementDataxmlElement)
atMicrosoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.XmlElementData.get_CodeDomElement()
atMicrosoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.EndElement(Stringprefix,Stringname,Stringurn)
atMicrosoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.Parse(XmlReaderreader)
atMicrosoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.ParseXml(StringxmlStream,CodeStatementCollectionstatementCollection,StringfileName,StringmethodName)
atMicrosoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnMethodPopulateStatements(Objectsender,EventArgse)
atSystem.CodeDom.CodeMemberMethod.get_Statements()
atSystem.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManagermanager,CodeTypeDeclarationdeclaration)
atSystem.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManagermanager)
atMicrosoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManagerserializationManager)
atSystem.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHosthost)

I have no idea what I did to make this happen, what could be wrong?
Rehabilitated  Friday, February 13, 2009 9:53 AM
No, I didn't touch the .cs files.

I ended up restoring a backup version, luckily it was pretty recent.
Rehabilitated  Tuesday, February 17, 2009 3:47 PM

Hi W1z8it,

Base on my understanding, you have got these error when you open a form in Visual Studio designer. Does this form a inherited form? Did you make any changes to the code in Designer.cs file?

You can try to rebuild the whole solution and then click the form to open it.

If you need further help, please feel free to tell me.

Sincerely,
Kira Qian


Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, February 16, 2009 9:16 AM
No, I didn't touch the .cs files.

I ended up restoring a backup version, luckily it was pretty recent.
Rehabilitated  Tuesday, February 17, 2009 3:47 PM

You can use google to search for other answers

Custom Search

More Threads

• DataGridView Column Editor code generation issue
• How to remove "Dock in Parent Container" SmartTag
• textbox border color
• Custom control designer cut & paste or move no InitializeNewComponent
• Implementing ISerializable and IBindableComponent for Design-Time Component?
• prevent dashed border from being drawn around panel
• Doing undo & redo operations....
• complicated userControl
• DataGridView column header fires currentCell changed
• UserControl Template not beign updated