Click here to Skip to main content
12,882,812 members (39,589 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET Chart
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.
Posted 14-Jan-13 19:57pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Changes made in web.config

<add key="ChartImageHandler" value="storage=session;timeout=20;" />
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

<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=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170422.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100