Renaming and deletion not working

Muhammad Farjad

I am having a problem using File Explorer. Uploading works fine but when I try to rename or delete any file or folder, an error pops up saying that "The selected file could not be deleted because the application did not have enough permissions...".

I have gone through the earlier posts in forums regarding this problem but could not get to find out the solution. I am using ASP.NET AJAX Q3 2009 SP2 version and the declarations of file explorer in my codes are as follow:

Petio Petkov

I recommend you to check the permissions granted to the ASP.NET account and the IIS User account to this folder.

Kind regards,
Petio Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

Fiko

I have already answered your support ticket. For convenience I have paste it here as well:

"The message which is shown is expected, because the default FileBrowserContentProvider used in RadFileExplorer works with virtual paths only that can be resolved using Server.MapPath method. The paths set in the markup are correct virtual path and they can be resolved by the mentioned method, but the paths set in code behind are incorrect. Please check the differences outlined here:

ASPX:

ViewPaths="~/Root/farjad"
UploadPaths="~/Root/farjad"

DeletePaths="~/Root/farjad"

C#:

paths[0] = "~\\Root\\" + (string)Session["userName"];

You need to change the path in C# code to:

paths[0] = "~/Root/"+ (string)Session["userName"];

"

Kind regards,
Fiko
the Telerik team

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.