0
Answer

Problem with asp.Net chart !

Irata

Irata

10y
757
1
ASP.NET chart is not shown on the page! Only a small icon is shown instead of the chart!
 
I have spend a half day to find whats wrong and google can not help me!
 
i using Visual Studio 2012 and chrome as browser.
 
i belive that the web.config file missing something, but i cannot find whats wrong??? 
 
 
Here the  web.config file:
 
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!--<add key="ChartImageHandler" value="storage=memory;deleteAfterServicing=true; WebDevServerUseConfigSettings=true;"/>-->
<add key="ChartImageHandler" value="storage=memory;deleteAfterServicing=true;privateImages=false;timeout=20;"/>
</appSettings>
<!--<compilation targetFramework="4.0">
<assemblies>
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>-->
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<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>
<!-- maximale Grösse des Uploadfiles festlegen ASP.NET wird in KBytes angegeben -->
<httpRuntime maxRequestLength="2097152" executionTimeout="99999" />
<!--104857600" /> -->
<authorization>
<!-- Benutzer, Rollensteuerung für den Zugriff:
http://weblogs.asp.net/gurusarkar/archive/2008/09/29/setting-authorization-rules-for-a-particular-page-or-folder-in-web-config.aspx
-->
<deny users="?" />
<!-- ? steht für authentifizierte Benutzer !-->
</authorization>
<!--<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.5">
<assemblies>
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>-->
<!--<httpRuntime targetFramework="4.5"/>-->
</system.web>
<system.webServer>
<security>
<requestFiltering>
<!-- IIS - maxAllowedContentLength - wird in Bytes angegeben! -->
<!-- maximale Länge von 2GB -->
<!--<requestLimits maxAllowedContentLength="2147483648" />-->
<!-- aktuelle Länge von 100MB -->
<!--<requestLimits maxAllowedContentLength="104857600" />-->
<requestLimits
maxAllowedContentLength="2147483648"
maxUrl="260"
maxQueryString="25"/>
</requestFiltering>
</security>
<validation validateIntegratedModeConfiguration="false" />
<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>
<!--<handlers>
<add name="ChartImg" verb="*" 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>
</configuration>
 
 
Thank you for helping!
 
Irata!