title: Unable to generate a temporary class (result=1) CS0200
body: <p>I have a class which is being serialized/deserialized which works fine on most machines, but doesn't work on others (I have not been able to discern the difference, though on the boxes that present an issue I see other issues which have hints of "security/permission" issue [specifically my app can create a folder, but then can't write files to it... weird, but not the main issue]).</p>
  
  <p>The error I get is:</p>
  
  <pre><code>Unable to generate a temporary class (result=1).
  error CS0200: Property or indexer 'Namespace.Object.ParentOrganizations' cannot be assigned to -- it is read only
  </code></pre>
  
  <p>The following is the property:</p>
  
  <pre><code>    public List&lt;long&gt; ParentOrganizations
      {
          get
          {
              return m_OrganizationIDs;
          }
          internal set
          {
              m_OrganizationIDs = value;
          }
      }
  </code></pre>
  
  <p>And if I change the "set" to public it does work, but I want to know why I have to do this on only a few specific boxes... so I can help assess why this and the other <em>weird</em> issues are occurring. I figure fixing a single weird issue at a time in my app is more of a hassle (and likely wrong) versus finding and resolving a system configuration issue.</p>
  
  <p>UPDATE: Giving localMachine\Everyone full permissions to the executing folder resolves this issue as well, but is not a good long-term solution.</p>