ChartPart for SharePoint installation instructions

To install ChartPart for SharePoint follow these instructions:

Prerequisities

  1. Verify that you have Windows SharePoint Services 3.0 or Microsoft Office SharePoint Server 2007
  2. Install Microsoft .NET 3.5 Service Pack 1
  3. Install the Microsoft Chart Controls for Microsoft .NET Framework 3.5
  4. Download the latest release of ChartPart

Deploy Chart Control settings to your web server

To install the MSChartControls.wsp (1.0.0.730) package to your front-end web servers follow these steps:
  • Add Solution *
1) stsadm -o addsolution –filename MSChartControls.wsp
2) stsadm -o execadmsvcjobs
  • Deploy Solution *
Either you can deploy your solution using the Central Administration site (Operations->Solution Management) or as follows:
1) stsadm -o deploysolution -name MSChartControls.wsp -immediate –allowgacdeployment
2) stsadm -o execadmsvcjobs
  • Verify that Solution is deployed *
To verify that the solution is deployed correctly go to Central Administration -> Operations -> Solution Management and look for the mschartcontrols.wsp. It should look like this:

Activate the Chart Controls Solution on your Web Application

To be able to use the ChartPart for SharePoint you have to activate the feature on the Web Application that you will use the ChartPart on like this:
1) Go to Central Administration
2) Go to Application Management
3) Select Manage Web Application Features
4) Verify that you have selected the correct Web Application in the top right corner
5) Click Activate on the Microsoft Chart Controls Feature.

Manual installation of Chart Controls

If you do not want to install this Chart Control Feature, then you can make the changes manually in the web.config of the Web Applications. Add the following line to all the WFEs and Web Application where you want the Chart Controls enabled:
<appSettings> <add key="ChartImageHandler" value="storage=memory;timeout=20;" /> </appSettings>

Deploy the ChartPart Web Parts to your Web Application

To install the Chart Part for SharePoint Web Parts you first have to install the Chart Controls, as above, and activated it on the Web Application you will install the ChartPart for SharePoint to, and then follow these steps:
  • Add the solution *
This adds your solution to the server
1) stsadm -o addsolution -filename “ChartPart 2.0.wsp”
2) stsadm -o execadmsvcjobs
  • Deploy the solution *
You can deploy the solution using Central Administration->Operations->Solution Management and select the Web Application on which you enabled the Chart Controls.
You can also do this manually to your Web Application. This deploys your solution to the selected Web Application. Replace <url> with the Url of your Web Application.
1) stsadm -o deploysolution -name “Chartpart 2.0.wsp” -immediate -allowCasPolicies -url <url>
2) stsadm -o execadmsvcjobs
  • Activate the feature on your Site Collection *
Now all you have to do is activate the feature on the selected Site Collection.
1) Go to Site Settings for your top-level site
2) Go To Site Collection Features
3) Activate the ChartPart for SharePoint feature
4) Now you can add ChartParts on every site in your Site Collection.

Last edited Sep 13, 2009 at 7:13 PM by wictor, version 6

Comments

luckstar643 Sep 21, 2010 at 4:00 PM 
If this ChartPart works correctly in sharepoint 2010? anybody test it?

jremperas Jul 8, 2010 at 9:17 PM 
hi wictor,

I have installed the chartpart following the instruction in this site. When I add it on a site while I am on the server itself. It worked just fine. But when I am on my local machine or any other machine, the webpart wont even displays.. When I tried adding the webpart, it gives the following error:" A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe. "
what do I need to make it work on other machine.

Please Help. Thanks.

jasminegarry85 Feb 25, 2010 at 1:54 PM 
Hi,
I also get this error after adding the webpart:
An exception occurred:System.IO.DirectoryNotFoundException: Invalid temp directory in chart handler configuration [c:\TempImageFiles\]. at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.Inspect() at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.ParseParams(String parameters) at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings..ctor(String parameters) at System.Web.UI.DataVisualization.Charting.ChartHttpHandler.InitializeParameters() at System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) at System.Web.UI.DataVisualization.Charting.Chart.GetImageStorageMode() at System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at ChartPart.ChartPartWebPart.Render(HtmlTextWriter writer)

I've installed Microsoft Chart Controls 3.5 SP1, installed, deployed and activated the MSChartControls.wsp package, and installed, deployed and activated ChartPart 2.0.wsp.

The error occurs after I'v added the webpart, chosen the settings, and then try to publish it. It wont draw a chart. Please help :)

roscioa Feb 18, 2010 at 7:17 PM 
I am using wss3.0 and I am getting an error stating, "Unable to add selected webpart. Chartpart: A Web Part on this page cannot be displayed or imported. The type could not be found or it is not registered as safe." I put the .dll in the GAC but this is not helped. Any help???? Thanks.

kritesh Jan 26, 2010 at 12:04 PM 
Hi. I also got an error like hamidi. Any fixes?

wictor Nov 25, 2009 at 6:52 AM 
Hi, you can use WSS 3 or MOSS 2007.
Make sure that you have installed, deployed and activated the MSChartControls.wsp package, also make sure that you have installed the Microsoft Chart Controls 3.5 SP1
/WW

vandam Nov 25, 2009 at 12:06 AM 
Forgot to mention, we are on WSS 3.0, does it need to be sharpoint 2007?

vandam Nov 25, 2009 at 12:03 AM 
I am getting the exact same error, any help would be greatly appreciated.

A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe

amit11 Nov 24, 2009 at 9:41 PM 
Hi

I get the following error message when I am trying to use the chartpart.



A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

Thanks

qaracter Nov 14, 2009 at 11:58 AM 
Hi Wictor,

I've got the same problem hamidi explained. I've checked the MSChartControls feature is already enabled in my web app.

Any suggestion?

Thanks

wictor Oct 11, 2009 at 11:33 AM 
Make sure that you have enabled the MSChartControls feature on your web application.

hamidi Oct 10, 2009 at 7:05 AM 
even after creating the folder, i get this error.
why?

hamidi Oct 10, 2009 at 6:48 AM 
i've done the above. although erroneously, but it works and the web part has been added to the site. but it doesn't draw a chart. instead, i get the following error:

An exception occurred:System.IO.DirectoryNotFoundException: Invalid temp directory in chart handler configuration [c:\TempImageFiles\]. at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.Inspect() at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.ParseParams(String parameters) at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings..ctor(String parameters) at System.Web.UI.DataVisualization.Charting.ChartHttpHandler.InitializeParameters() at System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) at System.Web.UI.DataVisualization.Charting.Chart.GetImageStorageMode() at System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at ChartPart.ChartPartWebPart.Render(HtmlTextWriter writer)

what's the problem and how can i fix it?
thx

guru_mt Jun 12, 2009 at 1:16 PM 
Hi,

i was able to install the chartpart, but when i dragged it into the home page i am getting the following error.

An exception occurred:System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info) at System.Double.Parse(String s, IFormatProvider provider) at ChartPart.ChartPartWebPart.GenerateChart() at ChartPart.ChartPartWebPart.Render(HtmlTextWriter writer)

so please help me to resolve this.

thanks,
guru

guru_mt Jun 11, 2009 at 12:16 PM 
I have installed the chartpart Using the SharePoint installer setup.exe , but when i tried to add the webpart i am not able to find the chartpart webpart in the list, please help me here.

michellij Jun 7, 2009 at 5:14 AM 
after i apply the ChartPart settings, i receive the error "error executing child request for ChartImg.axd"