RADChart - Error in using TempImagesFolder

Thread is closed for posting
5 posts, 0 answers
  1. LJ
    LJ avatar
    11 posts
    Member since:
    Sep 2009

    Posted 23 Oct 2009 Link to this post

    Hi All,

    I have a custom web part which includes RAD Chart control.
    This web part is used in WSS 3.0.

    There are following two methods available in RAD Chart to create chart's temp images.

    1. Use Session
    2. Use Folder

    First method can not be used in my case because sessions are disabled in WSS 3.0 by default and I dont want to enable it.

    So I used second method in my RAD Chart.

    Please refer the following code for details:

    *************************************************************************

    // Create chart object.

     

    RadChart radChartObj = new RadChart();

     

    radChartObj.EnableViewState =

    false;

     

    radChartObj.UseSession =

    false;

     

    radChartObj.TempImagesFolder = 

    "~/_layouts/Documenta/Reports/TempFiles";

     

    radChartObj.ID =

    "radChart";

     


    *************************************************************************

    If I log in to my SharePoint site with the user who has 'Write' permissions on 'TempFiles' folder, then chart is created successfully.
    But If I log in with user who does not have 'Write' permissions on 'TempFiles' folder, then RenderContents() function of web part throws exception.

    Exception details:
    A generic error occurred in GDI+. Check the folder specified in the TempImagesFolder property of the control. Current value is "/_layouts/Documenta/Reports/TempFiles". The folder should exist and must have been granted write permissions for the ASPNET user.
    ---------------------------------------------------------------

    My web application's pool identity is Network Service.
    I assigned 'Write' permissions on 'TempFiles' folder for Network Service and ASPNET user.
    But behavior remains same. RenderContents() function throws an exception.

    Please suggest a solution so that I don't need to assign 'Write' permission for each user of SharePoint site.

    Please let me know if I can use SPSecurity.RunWithElevatedPrivileges in this case. It is just an idea. May be it is not valid in this case.

    Please let me know your comments.
    It is really urgent.

    Thanking you in anticipation.
  2. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 28 Oct 2009 Link to this post

    Hello there,

    As you noted in your description you are able to use the control properly (once you have provided the necessary permissions) so I am unsure whether there is any problem related to the control itself or you are facing some Sharepoint-specific issues with user permissions.

    In order to verify whether the problem is in the control or is in the general configuration, you can try to create a custom WebPart that writes to the file system. If you are able to create such part and it writes correctly to the file system, while the chart control fails with the same permission set, then clearly it is a chart issue.


    Regards,
    Bart.
  3. LJ
    LJ avatar
    11 posts
    Member since:
    Sep 2009

    Posted 03 Nov 2009 Link to this post

    Hi,

    Please refer to the below link:
    http://store.bamboosolutions.com/kb/article.aspx?id=10786

    As per the resolution specified in above link, Application Pool user should have 'write' permissions to the temporary folder.

    I did the same. but this resolution did not work for me.

    Moreover, As per Telerik documentation, web application should have 'write' permissions to the temporary folder.
    Please refer to the below link:
    http://www.telerik.com/help/aspnet-ajax/advancedsession.html

    What does it mean that web application should have 'write' permissions to the temporary folder.
    is it same as assigning 'write' permission to Application Pool user??

    Please reply!!
    Its urgent!!

    Regards,
    LJ
  4. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 06 Nov 2009 Link to this post

    Hello LJ,

    Yes, I believe it's the same thing.

    Did you have any success with the generic custom WebPart that writes to the file system?


    Greetings,
    Bart.
  5. Bernd Brotter
    Bernd Brotter avatar
    2 posts
    Member since:
    May 2010

    Posted 03 May 2010 Link to this post

    Hello
    I have the same problem. Are there any news about this issue?
Back to Top