Search code examples
vb.netwinformsvisual-studio-2015mschart

mschart: Could not load file or assembly 'System.Windows.Forms.DataVisualization - vs2015 - winform


I have a windows form application (framework 3.5) that uses msCharts. Since we have upgraded our project from VS2008 to VS2015 we get the following error on other computers where we deploy the program (and where mschart is not installed):

System.IO.FileNotFoundException: 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. 
File name: 'System.Windows.Forms.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

We are using 'Microsoft Visual Studio 2015 Installer Projects' to create the installer (.msi) for the program.

In the Setup project I'm also not seeing any 'mschart/datavisualization' items in the 'Detected Dependencies' list, so maybe this is the problem? But I don't know if that is required.

Thank you.


Solution

  • Had to manually add the .DLL's to the assemblies in my setup project.