Sharepoint and MSChart control?
-
Tuesday, June 16, 2009 12:42 PM
Guys, can someone help me out with the following error, "Unknown server tag 'asp:Chart'".
I installed the MSChart control, have .net 3.5 running and modified the web.config to have the following tag between the <handlers> tag<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" />
and also the following between the <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" />
But still getting a problem when running my code with the above error. The code works on my local machine but when moved to run on SharePoint it will not.
Thanks in advance- Moved by Mike Walsh FIN Tuesday, June 16, 2009 12:52 PM prog q (?) (From:SharePoint - Setup, Upgrade, Administration and Operation)
All Replies
-
Tuesday, June 16, 2009 12:52 PMMoving to Programming.
WSS FAQ sites: http://wssv2faq.mindsharp.com and http://wssv3faq.mindsharp.com
Total list of WSS 3.0 / MOSS 2007 Books (including foreign language) http://wssv3faq.mindsharp.com/Lists/v3%20WSS%20FAQ/V%20Books.aspx -
Wednesday, June 17, 2009 5:42 PMWhere do you have the <asp:Chart> control? is it in a webpart? user control? What I am getting at is how do you have it inside sharepoint?also, do you notice anything in the event logs immediately after seeing this error message?
Tony Testa www.tonytestasworld.com -
Thursday, June 18, 2009 3:19 AM
Hi, Chochobeelai
Thanks for your posted web config, it gives a lot of information.
By your error message "Unknown server tag 'asp:Chart'", it seems that you have lost some config information under the XML root <pages></pages>
Such as:
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
Also, we have our Forum for MSChart,
http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/threads which may give you further help.
Hope this can help you.
Best Regards,
Aaron.
- Proposed As Answer by Aaron Han - MSFT Thursday, June 18, 2009 3:19 AM
- Marked As Answer by Chochobeelai Monday, June 22, 2009 5:11 PM

