MS 图表无法在服务器上运行

发布于 2024-08-16 09:26:14 字数 308 浏览 3 评论 0原文

我已经开始在 ASP.NET 3.5 中使用 MS 图表,并在 C# 中使用代码,

我使用的图表在 localhost 上工作得很好;但是当我开始在服务器上工作时问题就开始了,

我在网络配置中收到错误

解析器错误消息:无法加载文件或程序集“System.Web.DataVisualization,Version=3.5.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。系统找不到指定的文件。

有什么建议谢谢

I have started using MS charts in ASP.NET 3.5 with code behind in C#

I worked with the charts which worked fine with localhost; but problem startd when i started working on the server

i get an error in web config

Parser Error Message: Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Any suggestions thanks

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

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

发布评论

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

评论(2

仙气飘飘 2024-08-23 09:26:14

好的,这就是我如何让它工作的。

首先,我找到了 System.Web.DataVisualization DLL,它存在于我的程序文件中的 MS 图表控件文件夹的程序集中。我将这些复制到本地主机上的 bin 文件夹中,然后发布它。

然后在服务器端,我在 C 驱动器中创建了一个目录作为 TempDump,并在 Web 配置文件中进行了以下更改。

<appSettings>
  <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;"  />
 </appSettings>

我将其更改为

<appSettings>
  <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempDump\;" />
</appSettings>

,一切都工作完美。 。

谢谢

Ok here is how i made it work..

First i found the System.Web.DataVisualization DLL's which were present in the assemblies of MS chart control folder in my program files. i copied these to my bin folder on the local host and then published it..

then on server side i made a directory in C drive as TempDump and made the following change in web config file..

<appSettings>
  <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;"  />
 </appSettings>

I changed this to

<appSettings>
  <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempDump\;" />
</appSettings>

and everythig worked perfect..

thanks

相思故 2024-08-23 09:26:14

您的 ASP.Net 未针对 .Net Framework 3.5 配置。请参阅指定应用程序池的 .NET Framework 版本 (IIS 7)

Your ASP.Net is not configured for .Net Framework 3.5. See Specify a .NET Framework Version for an Application Pool (IIS 7)

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