title: Stack empty error when trying to add Microsoft Chart controls to a ASP.NET 4 app
body: <p>I'm trying to get Microsoft Chart controls working on an ASP.NET project. Microsoft have helpfully replaced the samples file with a new version which doesn't include an asp.net code, so I can't look there for help. </p>
  
  <p>On a blank asp.net 4 forms app, if I add the following (or just drag 'Chart' from the toolbar)</p>
  
  <pre><code>&lt;asp:Chart ID="Chart1" runat="server"&gt;
      &lt;Series&gt;
          &lt;asp:Series Name="Series1"&gt;&lt;/asp:Series&gt;
      &lt;/Series&gt;
      &lt;ChartAreas&gt;
          &lt;asp:ChartArea Name="ChartArea1"&gt;&lt;/asp:ChartArea&gt;
      &lt;/ChartAreas&gt;
  &lt;/asp:Chart&gt;
  </code></pre>
  
  <p>I get the following error </p>
  
  <pre><code>Server Error in '/' Application.
  
  Stack empty.
  </code></pre>
  
  <p>Any ideas? </p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>For those asking, I did try adding data. The following code has the same result </p>
  
  <pre><code>&lt;asp:Chart ID="chtNBAChampionships" runat="server"&gt; 
     &lt;Series&gt; 
        &lt;asp:Series Name="Championships" YValueType="Int32" ChartType="Column" ChartArea="MainChartArea"&gt; 
           &lt;Points&gt; 
              &lt;asp:DataPoint AxisLabel="Celtics" YValues="17" /&gt; 
              &lt;asp:DataPoint AxisLabel="Lakers" YValues="15" /&gt; 
              &lt;asp:DataPoint AxisLabel="Bulls" YValues="6" /&gt; 
              &lt;asp:DataPoint AxisLabel="Spurs" YValues="4" /&gt; 
              &lt;asp:DataPoint AxisLabel="76ers" YValues="3" /&gt; 
              &lt;asp:DataPoint AxisLabel="Pistons" YValues="3" /&gt; 
              &lt;asp:DataPoint AxisLabel="Warriors" YValues="3" /&gt; 
           &lt;/Points&gt; 
        &lt;/asp:Series&gt; 
     &lt;/Series&gt; 
     &lt;ChartAreas&gt; 
        &lt;asp:ChartArea Name="MainChartArea"&gt; 
        &lt;/asp:ChartArea&gt; 
     &lt;/ChartAreas&gt; 
  &lt;/asp:Chart&gt;
  </code></pre>