title: System.TypeLoadException: 'Could not load type 'System.Web.HttpContextBase' from assembly 'System.Web,
body: <p>Whenever I try to load the Chart using System.Web.Helpers namespace in Asp.net Core I get this Exception. </p>
  
  <blockquote>
    <p>System.TypeLoadException: 'Could not load type
    'System.Web.HttpContextBase' from assembly 'System.Web,
    Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.'</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/HbG8O.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HbG8O.png" alt="Please See the image"></a></p>
  
  <pre><code>new System.Web.Helpers.Chart(width: 800, height: 200).AddTitle("My Chart").AddSeries(chartType: "column", 
             xValue: new[] { _context.DemoTable.Select(o =&gt; o.Month) },
             yValues: new[] { _context.DemoTable.Select(o =&gt; o.AutomationPercentage) }
            ).Write("png");
  </code></pre>
  
  <p>What am I doing wrong here??</p>