Asp.Net Chart不适用于Publishing Server [英] Asp.Net Chart not working on Publishing Server

查看:91
本文介绍了Asp.Net Chart不适用于Publishing Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用ASP.Net Chart控件,为此我运行了一个exe并使用了这个@ DotNet页面。这在本地机器或开发机器上工作正常。



然后我在我的服务器上发布了相同的内容,根据本地系统在web.config中进行了更改并运行相同可执行程序。当我运行该应用程序时,它给出了web.config错误。当我从web.config中删除所有添加的语法时,它会成功运行,但是同一页面用于图表,给出相同的错误。如何解决这个问题,请帮助我。

Hi,
I am using ASP.Net Chart control, For that I run an exe and used this @ DotNet page. This is working fine on Local machine or development machine.

Then I published the same on my Server, changes made in web.config according to Local system and run the same exe. When I run the application then it is giving web.config error. When I remove all added syntax from web.config then it run successfully but same page which is used for the chart, giving same error. How can I solve this problem, please help me.

推荐答案

在web.config中所做的更改



Changes made in web.config

<appSettings>
<add key="ChartImageHandler" value="storage=session;timeout=20;" />
</appSettings>

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

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


<system.webServer>
<handlers>
<remove name="ChartImageHandler"/>
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>


这篇关于Asp.Net Chart不适用于Publishing Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆