Solved

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

Posted on 2010-11-17
5
1,823 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 69

Accepted Solution

by:
Éric Moreau earned 500 total points
Comment Utility
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
Comment Utility
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 69

Expert Comment

by:Éric Moreau
Comment Utility
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
Comment Utility
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 69

Expert Comment

by:Éric Moreau
Comment Utility
the same as your .exe
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now