What is the correct way to add an ASP.Net Chart control to a page? I have seen so many conflicting ways to do this but none work for me. Am I right in thinking I don't need to add any references as the control is already in the toolbox?
I am using ASP.Net with VB.Net in VS2019 on .Net 4. I have been dragging the control from the toolbox onto my page (actually an ascx control) in design view, but the web.config settings aren't being set up. I have to manually add them. I set the DataSourceId, but when I add a series the XValueMember and YValueMembers dropdowns don't list any values, so I have to manually type the field names.
The reason I am asking this is that when I run the site the chart is being created but the image won't load. If I right-click the image and select 'Open image in new tab' I get an error:
HTTP Error 500.21 - Internal Server Error Handler "ChartImg" has a bad module "ManagedPipelineHandler" in its module list
Could this be caused by the control not being set up correctly?