I have started using visual studio 2012. To move my solutions/projects over to 2012 I just copied the folders with the content into the path for the install of VS 2012. I am able to open the solutions/projects and work with the code and build and publish
the solutions no problem. I created a new VS 2012 solution and project for a website and copied some of the .aspx and .aspx.vb members over to the VS 2012 project along with the content of the web.config member from the original web.config member created
originally in the VS 2010 project. Everything is fine except the elements relating to charting don't seem to be available in the new VS 2012 project (although they are fine in the original VS 2010 project)...the message presented when you hover the cursor
over the underlined charting element is "Element chart/series/chartarea etc is not a known element. This can occur if there is a compilation error, or the web.config file is missing". I added the reference for Assembly/Framework for System.Web.DataVisualization
and System.Web.DataVisualization.Design but it had no effect still getting the error.
Can someone kindly show me what I need to do to get the charting elements working in the new VS 2012 project? Thanks much in advance for any help, Roscoe
Hi rpfinnimore,
Based on your description, I think your chart have not to setup correctly.
Please try to refer to the following solution:
- Please add the following code to your aspx file, which have using the Chart control.
<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>Please add the following code to you config file:
2. Please add the following code to you config file:
If your problem still exists, please try to drag the Chart control into your aspx file from toolbox, and then Visual Studio will generate previous information automatically.
Hope it can help you.
Best Regards,
Terry Guo
Download the addon of the chart control and install it
refer article
More info
http://www.microsoft.com/en-in/download/details.aspx?id=23903
Hi prk_in thanks for the reply. I thought the chart control was included in Visual Studio 2012. I can see it in the toolbox for aspx so was not expecting to need to download it. Is it because the original chart control on my site came from VS 2010? If
so can you tell me how to update the chart control on the site to 2012? Thanks tonnes, Roscoe
沒有留言:
張貼留言