How to update MS Chart for chart 4 to 3.5 in MS?

Anyone now how to update the link from MS Chart 3.5 to MS Chart 4. I recompiled the ASP.NET project with Visual Studio 2010, the link was already pointing to the MS Chart 4.0 dll, but when I open the web application it still says: "The base class includes the" Chart1 "field, but its type (System. Web.UI.DataVisualization.Charting.Chart) is incompatible with the control type (System.Web.UI.DataVisualization.Charting.Chart).

Skip any step for this update?

+4
source share
2 answers

The web.config file has a link to the System.Data.Visualization assembly. Make sure it points to the correct dll version.

The web.config file looks like this for version 3.5:

<compilation debug="true"> <assemblies> ... <add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </assemblies> </compilation> 
+2
source

Also check your links and make sure that the System.Web.DataVisualization and System.Web.DataVisualization.Design assemblies are the correct version. For some reason, my links supported version 3.5. They deleted them and upgraded to version 4, and everything was fine again.

+2
source

Source: https://habr.com/ru/post/1335101/