Programming, error messages and sample code

Error running Windows Form Program because of MS chart

Programming, error messages and sample code > ASP.NET

When you created a reporting program that worked fine until added a chart to it. And you would  get the error below

Error:
"Could not load file or assembly 'System.Windows.Forms.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified"

Reason: That means you should have MS chart installed in the web server.
Solution
As .Net 4.0 has MS chats built in, you just need to login to your hosting account-->hosting manager
-->website domain manager to change the site type to asp.net 4.0 to solve it.