We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

chartseriescollection add method throws argumenttype exception

Hi please help with this issue.

MVC5 C# app was working fine but now i get this error;
value should be ChartSeries i.e. System.ArgumentException: value should be ChartSeries at 
LayoutController.cs line 294. This is the code throwing the exeception - chartmodel.Series.Add(series);



1 Reply

AT Anandaraj T Syncfusion Team February 10, 2014 06:51 AM UTC

Hi Otsile Kesianye,

Thanks for using Syncfusion products.

The "Argument Exception" attached in the screenshot will occur if "Syncfusion.Chart.Base" and "Syncfusion.Chart.Mvc" assemblies are incompatible. For an MVC5 application, we should use "Syncfusion.Chart.Mvc" assembly with version "11.4500.0.26" and "Syncfusion.Chart.Base" assembly with version "11.4500.0.26".

Please let us know if you have any concern.


Live Chat Icon For mobile
Up arrow icon