This is a migrated thread and some comments may be shown as answers.

Telerik RadChart 2010 on SharePoint 2010

7 Answers 202 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 11 Nov 2010, 09:44 AM

Hi Telerik,

I have been used Telerik RadChart Q1 2010 on SharePoint 2007 successfully. But, now I use Telerik RadChart Q1 2010 on SharePoint 2010, I get the following error message

The ... Web Part appears to be causing a problem. Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

I modified my web.config as what the error say, but it doesn't help. Here is my web.config:

...

...

...

<httpHandlers> 
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
</httpHandlers>

...

...

...

<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
 </httpModules>

...

...

...

<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">

I render the RadChart directly on the Page, It means Page.Controls.Add(radChart). I know I can render RadChart's Image, but it doesn't meet my requirement

So, anybody please help me to solve this problem

Thanks

Cam Mach

Bamboo Solutions Corporation

7 Answers, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 15 Nov 2010, 08:19 AM

Any body, please help. It's urgent

Thanks

Cam Mach

Bamboo Solutions Corporation

0
Evgenia
Telerik team
answered on 16 Nov 2010, 12:56 PM
Hello Peter,

By default RadChart requires session state and it seems it is disabled in this case, which causes the problem. Fortunately, RadChart can run without session state, you can find more details in our help topic - http://www.telerik.com/help/aspnet-ajax/advancedsession.html.
Also something to have in mind - please use the Smart Tag of RadChart to automatically register an HTTP handler in the web config file to render the chart as it will avoid many troubles. This is shown here - http://www.telerik.com/help/aspnet-ajax/gettingstartedstaticdata.html (point 4).

Regards,
Evgenia
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Peter
Top achievements
Rank 1
answered on 17 Nov 2010, 04:10 AM

Hello Evgenia,

Now I set UseSession to false, and create temporary folder for the chart image, but it appears to have a little red "X" on my web part. I go to the temporary folder and see my chart there, but why it doesn't show on my page instead the red "X".

Have I missed something? Please help

Thanks,

Peter

Bamboo Solutions Corporation

0
Peter
Top achievements
Rank 1
answered on 18 Nov 2010, 09:58 AM

Hi Telerik,

Anybody please help me. I am in a hurry. 

By the way, how can I get the Image Map info after rendering RadChart?

Thanks in advance,

Cam Mach

Bamboo Solutions Corporation

0
Evgenia
Telerik team
answered on 18 Nov 2010, 05:17 PM
Hello Peter,

Please take a look at this forum post - http://www.telerik.com/community/forums/aspnet-ajax/chart/using-radchart-in-sharepoint-2010.aspx.
Another possible cause would be an URL rewriter. In this case, the http handler request might not be the correct one. You can check this forum post for more details.

As for your newest question - to get the Image Map info of the Chart - open View Source of the generated Browser's page with the Chart and look for
<map id='imRadChart1' name='imRadChart1'>
tag. All you need (area shapes) is there.

I hope this will help you. 

Kind regards,
Evgenia
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Peter
Top achievements
Rank 1
answered on 19 Nov 2010, 04:13 AM

Thank Evgenia so much!

Now It help. Actually I am using IIS7 on Window Server 2008, that's why I always get trouble with rendering RadChart.

But now, everything is fine.

Again, Thanks Evgenia

Cam Mach

Bamboo Solutions Corporation

0
Savan
Top achievements
Rank 1
answered on 01 Aug 2011, 10:44 AM
If you have IIS7 and Windows Server 2007, then you need to add HttpHandler enetry using "IIS" only. (Using Content View)
If you add that entry, directly, by modifing web.config. Then it does not work.

Actully, IIS content view adds entry in " <system.webServer>" for HttpHandler.


Thanks
Savan
Tags
Sharepoint Integration
Asked by
Peter
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Evgenia
Telerik team
Savan
Top achievements
Rank 1
Share this question
or