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

Rights issue on TempImagesFolder

2 Answers 128 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
LJ
Top achievements
Rank 1
LJ asked on 26 Nov 2009, 10:36 AM
Hi All,

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

To create chart's temp images, I am using temp folder created at path "~/_layouts/Documenta/Reports/TempFiles".

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";

 

 

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

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

My web application's pool identity is Network Service.
So, I assigned 'Write' permissions on 'TempFiles' folder for Network Service and ASPNET user.


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.
---------------------------------------------------------------


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

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

Thanking you in anticipation.

Regards,
LJ

2 Answers, 1 is accepted

Sort by
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 01 Dec 2009, 09:20 AM
Hello there,

Based on your description I am unsure whether there is any problem related to the control itself or you are facing some Sharepoint-specific issues with user permissions -- as you noted once the control is supplied with the necessary permissions, it renders the image correctly.

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.


Greetings,
Bart.




0
Bernd Brotter
Top achievements
Rank 1
answered on 03 May 2010, 08:23 AM
Hello
I have the same problem. Are there any news about this issue?
Tags
Chart (Obsolete)
Asked by
LJ
Top achievements
Rank 1
Answers by
Bartholomeo Rocca
Top achievements
Rank 1
Bernd Brotter
Top achievements
Rank 1
Share this question
or