{"id":4640,"date":"2014-03-30T14:14:25","date_gmt":"2014-03-30T14:14:25","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/error-when-trying-to-open-designer-in-c-collection-of-common-programming-errors\/"},"modified":"2014-03-30T14:14:25","modified_gmt":"2014-03-30T14:14:25","slug":"error-when-trying-to-open-designer-in-c-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/error-when-trying-to-open-designer-in-c-collection-of-common-programming-errors\/","title":{"rendered":"Error when trying to open designer in C#-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn Hi guys&#8230;.I&#8217;m currently creating a first person shooter game on C#&#8230;i had\u00a0already 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&#8230;well, here it is&#8217;To prevent possible data loss before loading the designer, the following issues must be resolved&#8217;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&amp; 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&#8217;s that&#8230;.I&#8217;ve tried the online help in C#, but it says &#8220;INFORMATION NOT FOUND&#8221; (AAAAAAAAAAAAARGGHHH)I use Visual C# 2008, if that&#8217;s of any importanceThanks in advance<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn1<\/p>\n<p>i have in fact fixed the problem&#8230;.my mistake, i forgot to update the threadi&#8217;m not sure exactly what i did, however&#8230;i edited some things in the Designer.cs, and it was like Harry Potter flicked his magic wand&#8230;<\/p>\n<p>anyways, thanks for all the help<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn2 This project is actually a windows form project, so I need to be able to access the form to add objects, etc&#8230;that&#8217;s sort of why i panicked a little bitAny suggestions in this situation?<\/p>\n<p>Your thought about the designer.cs file crossed my mind as well&#8230;.I&#8217;ll take a closer look at that<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn3 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\u00a0upload it\u00a0to the public folder of skydrive.live.com<\/p>\n<p>Harry<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn4<\/p>\n<p>i have in fact fixed the problem&#8230;.my mistake, i forgot to update the threadi&#8217;m not sure exactly what i did, however&#8230;i edited some things in the Designer.cs, and it was like Harry Potter flicked his magic wand&#8230;<\/p>\n<p>anyways, thanks for all the help<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn5<\/p>\n<blockquote>\n<p>i have in fact fixed the problem&#8230;.my mistake, i forgot to update the threadi&#8217;m not sure exactly what i did, however&#8230;i edited some things in the Designer.cs, and it was like Harry Potter flicked his magic wand&#8230;<\/p>\n<p>anyways, thanks for all the help<\/p>\n<\/blockquote>\n<p>\nSee it worked.\u00a0 &#8220;Don&#8217;t Panic!&#8221;\u00a0 Happy Coding.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>msdn Hi guys&#8230;.I&#8217;m currently creating a first person shooter game on C#&#8230;i had\u00a0already 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&#8230;well, here it is&#8217;To prevent possible data loss before loading the designer, the following issues must be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4640","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4640"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4640\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}