I have a solution with a single project file. I am deploying as a ClickOnce application. It all runs fine and well on my computer but when I try to run it on someone else's I get this error
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'
System.Windows.Forms.DataVisualization
is in facet loaded as a reference in my project and I believe there to be appropriate using statements where ever it is being used.
When I go to my project Properties>Publish>Application Files... System.Windows.Forms.DataVisualization has an exclamation point next to it that tooltip text of "This item is no longer referenced by the project. If it is no longer needed, it can be removed by right clicking on the item." the Publish status is "Include" and the Hash is "Include." the publish status is not, however, "Include (auto)"; Exclude has the auto text next to it. But whether I include or exclude I get the same error when running on someone else's machine.
What do you think I should do to get this file to be properly referenced?
Thanks
Update:
I've tried setting Local Copy = true, build rebuild to no avail.
I'm going through all the other suggestions now. (It's a long walk between me and the computer that doesn't work!)
System.Windows.Forms.DataVisualization
with your app, because I think it might not be a part of the base .Net Framework. Google seems to corroborate my thoughts... – Atman