图表控件未显示在主机中! [英] the chart control is not shown in host!
本文介绍了图表控件未显示在主机中!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在网站上使用图表控件(通过连接到数据库).
它在本地主机上工作良好,但在服务器上不起作用.
使用此web.config,将运行页面,但未显示图表:
I use a chart control (by connecting to database)in a website.
It works well in local host.but in server it doest work.
with this web.config,the page is run,but the charts are not shown:
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<add key="ChartImageHandler" value="storage=file;timeout=20;Url=~/temp;" />
</appSettings>
<system.webServer>
<handlers>
<remove name="ChartImageHandler" />
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST"
path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</handlers>
</system.webServer>
<connectionStrings>
<add name="ysekkehConnectionString" connectionString="Data Source=.;Initial Catalog=ysekkeh;User ID=sa"
providerName="System.Data.SqlClient" />
<add name="ysekkehConnectionString2" connectionString="Data Source=.;Initial Catalog=dbysekkeh;User ID=dsaysekkeh;Password=42049071"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<!--<httpHandlers>
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
validate="false" />
</httpHandlers>-->
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting"
assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</controls>
</pages>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
</compilation>
</system.web>
</configuration>
当"httphandlers"标记未注释时,整个站点将无法运行!
错误:
HTTP错误500.23-内部服务器错误
检测到在集成托管管道模式下不适用的ASP.NET设置.
when the "httphandlers" tag isnt comment,the whole of site is not run!
error :
HTTP Error 500.23 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
推荐答案
此错误500.23转换为-ASP.NET httpHandlers配置不适用在托管管道模式下.
检查IIS中的httpHandlers配置.尝试以下操作:
1.打开服务器管理器
2.选择角色">"Web服务器(IIS)">"IIS管理器">选择服务器">分配池"
3.选择您的asp.net应用程序正在运行的应用程序池,在>点击右侧窗格中的高级设置"下.
4.在高级设置">常规">受管管道模式"下,选择经典"
5.回收应用程序池并测试您的应用程序.
This error 500.23 translates to - An ASP.NET httpHandlers configuration does not apply in Managed Pipeline mode.
Check the httpHandlers configuration in IIS. Try following:
1. Open Server Manager
2. Select Roles>Web Server (IIS)>IIS Manager>Select the Server>Applocation Pools
3. Select the appPool that your asp.net app is running under>Click on ''Advanced Settings'' from the right hand pane.
4. Under Advanced Settings>General>Managed Pipeline Mode, select "Classic"
5. Recycle app pool and test your app.
这篇关于图表控件未显示在主机中!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文