我们正在将VS解决方案从SP2010升级到SP2013。我们使用VS2010和Windows Server 2012操作系统。

你能告诉我system.web.ui.datavisualization.charting;位于? 我得到的错误是: -

错误7592类型或命名空间名称'datavisualization'没有 存在于命名空间'system.web.ui'中(您缺少一个程序集 参考?)c:\ dev \ project \ mypartscontrol.ascx.cs

我正在浏览帮助并得到这个 link 要查看以下哪些提示:C:\ Program Files(x86)\ Microsoft图表控件\组件。我的计算机中没有C:\ Program Files(x86)\ Microsoft图表控件目录。

有帮助吗?

解决方案

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

其他提示

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

许可以下: CC-BY-SA归因
scroll top