title: Size for ApplicationDataCompositeValue
body: <p>I'm porting my published app in Windows Phone, to Win 8. While trying to write to the <code>IsolatedStorage</code> equivalent,  <code>ApplicationDataContainer</code>, I get an exception. The exception says </p>
  
  <blockquote>
    <p>Error : The size of the state manager setting has exceeded the limit</p>
  </blockquote>
  
  <p>I'm not sure if this is the correct way of using the <code>ApplicationDataContainer</code>.</p>
  
  <pre><code>public void WriteToIsolatedStorage()
      {
          try
          {
  
              ApplicationDataContainer localSettings = ApplicationData.Current.LocalSettings;
              ApplicationDataCompositeValue composite = new ApplicationDataCompositeValue();
  
              if (localSettings.Containers.ContainsKey("LoveCycleSetting"))
              {
                  localSettings.DeleteContainer("LoveCycleSetting");
              }
  
              composite["GetWeekStart"] = m_bWeekStart;
  
              composite["iHistCount"] = m_iHistCount;
  
              composite["dtHistory"] = this.DateTimeToString(m_dtHistory);
  
              composite["avgCycleTime"] = m_iAvgCycleTime;
         }
      }
  </code></pre>
  
  <p>The exception occurs at the second last line. m_dtHistory is a string array of size 400. So does the <code>ApplicationDataCompositeValue</code> have a fixed size? Or do I have to write the m_dtHistory array into a file? Cuz in WindowsPhone I could directly write the array into the <code>IsolatedStorageSettings</code>.</p>
  
  <p>It would be really helpful if someone could guide me on this or give links.</p>
  
  <p>Alfah</p>