尝试使用 DataVisualization 时出现程序集错误 - 这意味着什么?
我正在编写一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来这个错误很清楚它想要什么。您已获得对某些内容(另一个 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.
没关系 - 必要的 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.