尝试使用 DataVisualization 时出现程序集错误 - 这意味着什么?

发布于 2024-10-08 17:24:00 字数 384 浏览 0 评论 0原文

我正在编写一个 ASP.NET 3.5 应用程序,并尝试向其中添加图表。我向项目添加了对 System.Web.DataVisualization 的引用,但是当我运行它时,出现此错误:

error BC30652: Reference required to assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' containing the type 'System.Web.UI.DataVisualization.Charting.Chart'. Add one to your project. 

这试图告诉我什么?

I'm writing an ASP.NET 3.5 app, and I'm trying to add a chart to it. I added a reference to System.Web.DataVisualization to the project, but when I run it I get this error:

error BC30652: Reference required to assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' containing the type 'System.Web.UI.DataVisualization.Charting.Chart'. Add one to your project. 

What is this trying to tell me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

虫児飞 2024-10-15 17:24:00

看起来这个错误很清楚它想要什么。您已获得对某些内容(另一个 DLL)的引用,这需要您引用 System.web.DataVisualization 程序集。

Seems like the error is pretty clear what it wants. You've got a reference to something (another DLL) which requires you to also reference the System.web.DataVisualization assembly.

不语却知心 2024-10-15 17:24:00

没关系 - 必要的 web.config 设置没有到位。不知道为什么添加引用没有为我设置 web.config,但我只是从另一个项目复制了设置,现在工作正常。

Never mind - the necessary web.config settings weren't in place. Not sure why adding the reference didn't set up web.config for me, but I just copied the settings from another project and it's working fine now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文