only My site

Friday, August 24, 2012

RadAsyncUpload - RadAsyncUpload does not have permission to write files in the TemporaryFolder

Today I deployed a aspx page (with telerik:RadAsyncUpload) control in a new environment and come up with the following error

Error :

"RadAsyncUpload does not have permission to write files in the TemporaryFolder. In Medium Trust scenarios, the TemporaryFolder should be a subfolder of the Application Path.   at Telerik.Web.UI.RadAsyncUpload.TestTemporaryFolderPermissions() "

Cause :

The logged in user don't have Write permission for the temporary folder.

Resolution :

The resolution for the issue is need to give Authenticated_Users account write permission for the TemporaryFolder. The temporary folder is by default located in ApplicationRootPath.com80\App_Data\RadUploadTemp. You may also give everyone account also, but it is not advisable.

In addition we can also specify a custom path for the TemporaryFolder. The following is the code for the same

<telerik:RadAsyncUpload TemporaryFolder="c:\windows\temp"

Again we need to give the appropriate permissions to the "c:\windows\temp" folder as mentioned above.

No comments: