Solved

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

Posted on 2010-11-17
5
1,859 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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