title: An exception of type 'System.ArgumentException' occurred in cms.dll but was not handled in user code
body: <p>Trying to go to a page on my site, got a blank screen and decided to try again with Visual Studio 2012 loaded and debugging it, now I get this error when the page loads:</p>
  
  <p><code>An exception of type 'System.ArgumentException' occurred in cms.dll but was not handled in user code</code> and points to the following code in <code>HeaderControl.ascx.cs</code>:</p>
  
  <pre><code>else if(new umbraco.cms.businesslogic.template.Template((Context.GetContent()).template).Alias == "TemplateLanguage")
  </code></pre>
  
  <p>This code is inside the following method:</p>
  
  <pre><code>public void LoadData()
  {
      _Location = HttpContext.Current.GetLocation();
  
      if (Context.GetContent().NodeTypeAlias == "Home")
      {
          TheHomeHeaderPH.Visible = true;
          ThePhonePH.Visible      = true;
          _MenuStyle = "var-nav nav-large";
          LoadMenuTopControl();
          LoadMenuMainControl();
      }  
      else if(new umbraco.cms.businesslogic.template.Template((Context.GetContent()).template).Alias == "TemplateLanguage") 
      {
          TheContentHeaderPH.Visible = true;
          _MenuStyle              = "nav-small";
          LoadContentMenuTopControl();
          LoadMenuLanguageControl();
      }
      else
      {
          MMG.BusinessLayer.Content theContent = MMG.BusinessLayer.Content.GetCached(Context.GetContent());
  
          if (theContent.TemplateColor == "168C9C")
          {
              TheHomeHeaderPH.Visible = true;
              _MenuStyle = "nav-small";
              LoadMenuTopControl();
              LoadMenuMainControl();
          }
          else
          {
              TheContentHeaderPH.Visible = true;
              LoadContentMenuTopControl();
              LoadContentMenuMainControl();
          }
      }
  }
  </code></pre>
  
  <p>How can I fix this problem?  <code>System.ArgumentException</code> says this: <code>{"No node exists with id '0'"}</code></p>