Solved

Visual Studio 2010 win form system.windows.forms.datavisualization error

Posted on 2010-11-17
5
1,842 Views
Last Modified: 2013-11-26
Programing with Visual Studio 2010
The project is in Net 3.5 The project i a Win forms project not a web project.
In references I have:
System.Windows.Forms.DataVisualization .NET 3.5.0.0

but when I go to the publish tab on the applications files it doesn't appear.

When I run my project in my computer it works fine, but in other computers when o form with chart is opened the error rises:

Can not load file or assembly 'System.Windows.Forms.DataVisualization, Version = 3.5.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' or one of its

NOTE:
This project was created before with Visual Studio 2008 and worked without problems, the problem ther is since i upgraded to Visual Studio 2010
0
Comment
Question by:cpx_Support
  • 3
  • 2
5 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 34155060
The charts were not included in 3.5 and you needed to add this reference. they are now builtin VS2010 (if you target .Net framework 4.0)
0
 

Author Comment

by:cpx_Support
ID: 34155516
I added the reference and it works fine in the computer where I have the Visual Studio.
The problem is in the publication.
I want to include the files in the publication but I can't.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 34155548
you have a reference to the 3.5 or the 4.0?

if you have a reference to the 3.5, you need to deploy it with your application as it is not native to this version of the Framework. the easiest way is to set the Local property to True in the reference and copy it from the bin folder to your destination PC
0
 

Author Comment

by:cpx_Support
ID: 34157462
I have a reference to the 3.5
Yes I want to deply it, an when I was using Visual Studio 2008 I did it without problems, now I can't select it.
When you say : "... and copy it from the bin folder to your destination PC " where I have to copy in the destination PC i which folder?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 34157546
the same as your .exe
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question