The circle of life – ** .Net – Training – MOSS **

  • Past Post

  • Vistor Locations

  • Advertisements

Setting up SharePoint to use the ASP.Net Charting Control

Posted by Clayton James on October 27, 2010

Scott Gu discusses the very cool ASP.Net Chart Control and provides links to download the required components.

If you are developing custom applications in SharePoint 2007 are are interested in displaying your data in a graphical format (like this) then you will need to complete some configuration first.

Note: Make sure you download and install the Sample Applications as this has many great examples.

To setup the Charting in SharePoint you will need to perform the following:

  1. Download and install MSChart.exe on the SharePoint Server
  2. If you are in a development environment then also install MSChart_VisualStudioAddOn.exe
  3. Add Reference to the System.Web.DataVisulization.dll
  4. Update the SharePoint web.config file
    1. <handlers…section
      <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″/>
    2. <appSettings…section
      <add key=”ChartImageHandler” value=”Storage=file;Timeout=20;Url=/_layouts/Images/MicrosoftChartControls/;”/>
    3. <controls…section
      <add tagPrefix=”asp” namespace=”System.Web.UI.DataVisualization.Charting” assembly=”System.Web.DataVisualization, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>
    4. <httpHandlers…section
      <add path=”ChartImg.axd” verb=”GET,HEAD” type=”System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ validate=”false”/>
    5. <tagPrefix…section
      <add tagPrefix=”asp” namespace=”System.Web.UI.DataVisualization.Charting” assembly=”System.Web.DataVisualization, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ />
  5. Create the _layouts/Images/MicrosoftChartControls folder and provide higher permissions so everyone can modify
  6. Add POST to the httpHandlers ChartImg.axd to remove the error ‚ÄúError executing child request for ChartImg.axd‚ÄĚ

4 Responses to “Setting up SharePoint to use the ASP.Net Charting Control”

  1. Gravity is now cleverly applied within this video fixture.
    Some phenomenal success pertaining to the Nintendo
    Nintendo wii console has left a lot of humans wondering about
    possible alternatives in obtaining good quality Wii games.

  2. Hi, I check your blogs on a regular basis. Your
    writing style is witty, keep up the good work!

  3. Thank you, I’ve just been searching for info approximately this topic for a while and yours is the
    best I have found out so far. But, what about the bottom line?
    Are you positive in regards to the supply?

  4. I don’t know whether it’s just me or if everybody else encountering problems with your blog.

    It appears like some of the text on your content are running
    off the screen. Can someone else please provide feedback and let me
    know if this is happening to them too? This might be a issue with
    my internet browser because I’ve had this happen before.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: