Telerik RadChart 2010 on SharePoint 2010

8 posts, 0 answers
  1. Peter
    Peter avatar
    15 posts
    Member since:
    Jul 2007

    Posted 11 Nov 2010 Link to this post

    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

  2. Peter
    Peter avatar
    15 posts
    Member since:
    Jul 2007

    Posted 15 Nov 2010 Link to this post

    Any body, please help. It's urgent

    Thanks

    Cam Mach

    Bamboo Solutions Corporation


  3. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 16 Nov 2010 Link to this post

    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.
  4. Peter
    Peter avatar
    15 posts
    Member since:
    Jul 2007

    Posted 16 Nov 2010 Link to this post

    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

  5. Peter
    Peter avatar
    15 posts
    Member since:
    Jul 2007

    Posted 18 Nov 2010 Link to this post

    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

  6. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 18 Nov 2010 Link to this post

    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.
  7. Peter
    Peter avatar
    15 posts
    Member since:
    Jul 2007

    Posted 18 Nov 2010 Link to this post

    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

  8. Savan
    Savan avatar
    3 posts
    Member since:
    Jul 2011

    Posted 01 Aug 2011 Link to this post

    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
Back to Top