Steps for configuration of ASP.net chart controls in sharepoints
1. Add dll in webpart project: System.Web.DataVisualization for charts.
2. Add the below handlers in the web.config file of the application which is located in inetpub/wwwroot/wss/VirtualDirectories/<WebApplicationPortNumber>
<system.web>
<httpHandlers>
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
</system.web>
<system.webServer>
<handlers>
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" 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>
<appSettings>
<add key="ChartImageHandler" value="storage=file;timeout=20;Url=~/wpresources/;" />
</appSettings>
No comments:
Post a Comment