5

We are upgrading a VS solution from SP2010 to SP2013. We are using VS2010 and Windows Server 2012 OS.

Can you tell me where is the DLL for System.Web.UI.DataVisualization.Charting; located? The error I get is:-

Error 7592 The type or namespace name 'DataVisualization' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?) C:\dev\Project\MyPartsControl.ascx.cs

I was browsing for help and got this link which mentions to look under: c:\program files (x86)\Microsoft Chart Controls\Assemblies. There is no c:\program files (x86)\Microsoft Chart Controls directory in my computer.

2 Answers 2

5

It is present here

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5

When adding dll references click on Framework and scroll down, you should be able to see this: enter image description here

1
  • OK, I was trying to browse and search and I forgot to check it under Assembly->Framework :) Thanks
    – variable
    Mar 3, 2014 at 8:32
0

https://stackoverflow.com/questions/6728710/system-web-ui-datavisualization-charting-missing-error-in-net-4-0

Do you reference it in your web.config

•under the controls tag (path: "< system.web>") :

< add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

•under "< httphandlers>") :

< add path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

http://forums.asp.net/t/1698336.aspx?How+to+create+a+flipcart+like+panel+for+showing+products+in+gridview

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.