title: Invalid Resx file. Could not load type error why?
body: <p>I'm getting designer error on code:</p>
  
  <p>The Component i'm willing to define a List of properties for:</p>
  
  <pre><code>using System.Collections.Generic;
  using System.ComponentModel;
  using System.Windows.Forms;
  
  namespace TestProjectForProperty.Test
  {
      public class MyTreeView : TreeView
      {
          private List&lt;TypeDescriptorBase&gt; _descriptorsAvailable = new List&lt;TypeDescriptorBase&gt;();
  
          [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
          public List&lt;TypeDescriptorBase&gt; DescriptorsAvailable
          {
              get { return _descriptorsAvailable; }
              set { _descriptorsAvailable = value; }
          }
      }
  }
  </code></pre>
  
  <p>The Descriptor itself:</p>
  
  <pre><code>using System;
  
  namespace TestProjectForProperty.Test
  {
      [Serializable]
      public class TypeDescriptorBase
      {
          public string Name { get; set; }
  
          public override string ToString()
          {
              return Name;
          }
      }
  }
  </code></pre>
  
  <p>I am getting the following error if i try to use the component for example on a form and add any items on the property sheet or in the component's constructor to the DescriptorsAvailable property</p>
  
  <blockquote>
    <p>Error 1   Invalid Resx file. Could not load type
    System.Collections.Generic.List`1[[TestProjectForProperty.Test.TypeDescriptorBase,
    TestProjectForProperty, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral,
    PublicKeyToken=b77a5c561934e089 which is used in the .RESX file. 
    Ensure that the necessary references have been added to your project.
    Line 134, position 5. ...\visual studio
    2010\Projects\TestProjectForProperty\TestProjectForProperty\Form1.resx    134 5   TestProjectForProperty</p>
  </blockquote>
  
  <p>In the Resx file there is data field with base64 encoded stuff inside when this error is present.</p>
  
  <p>I have been searching for an answer, but the best i got is to restart everything, it didn't help me, do you guys have any suggestions? I'm using .net 4 client and visual studio 2010</p>