Error when trying to open designer in C#-Collection of common programming errors
.png)
msdn Hi guys….I’m currently creating a first person shooter game on C#…i had already done a lot of work, both on my designer and my code window, until a major error popped up when I tried to open my designer…well, here it is’To prevent possible data loss before loading the designer, the following issues must be resolved’1 ErrorObject Reference not set to an instance of an objectInstances of this Error(1)at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.GetMemberTargetObject(XmlElementData xmlElementData, String& member)at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.CreateAssignStatement(XmlElementData xmlElement)at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.XmlElementData.get_CodeDomElement()at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.EndElement(String prefix, String name, String urn)at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.Parse(XmlReader reader)at Microsoft.VisualStudio.Design.Serialization.CodeDom.XML.CodeDomXmlProcessor.ParseXml(String xmlStream, CodeStatementCollection statementCollection, String fileName, String methodName)at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.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 System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host) So that’s that….I’ve tried the online help in C#, but it says “INFORMATION NOT FOUND” (AAAAAAAAAAAAARGGHHH)I use Visual C# 2008, if that’s of any importanceThanks in advance.png)
msdn1i have in fact fixed the problem….my mistake, i forgot to update the threadi’m not sure exactly what i did, however…i edited some things in the Designer.cs, and it was like Harry Potter flicked his magic wand…
anyways, thanks for all the help
.png)
msdn2 This project is actually a windows form project, so I need to be able to access the form to add objects, etc…that’s sort of why i panicked a little bitAny suggestions in this situation?Your thought about the designer.cs file crossed my mind as well….I’ll take a closer look at that
.png)
msdn3 Hi,Have you solve the problem?Could you please upload a sample that can show the scenario and post the link?You might want to upload it to the public folder of skydrive.live.comHarry
.png)
msdn4i have in fact fixed the problem….my mistake, i forgot to update the threadi’m not sure exactly what i did, however…i edited some things in the Designer.cs, and it was like Harry Potter flicked his magic wand…
anyways, thanks for all the help
.png)
msdn5i have in fact fixed the problem….my mistake, i forgot to update the threadi’m not sure exactly what i did, however…i edited some things in the Designer.cs, and it was like Harry Potter flicked his magic wand…
anyways, thanks for all the help
See it worked. “Don’t Panic!” Happy Coding.