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

Can do everything but create new folder?

5 Answers 122 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Xorcist
Top achievements
Rank 1
Xorcist asked on 18 Jul 2011, 03:01 PM
I've run the test here with flying colors, it creates the folders/files, accesses them, and deletes them properly. However I still can not create a folder through the RadFileExplorer. This is running on a local intranet SBS2003 server, with I believe Unrestricted trust... any idea why I might not be able to create folders?

5 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 21 Jul 2011, 01:19 PM
Hi Xorcist,

Could you please provide more detailed information on the specific scenario?
  • Which version of RadControls for ASP.NET AJAX and .NET Framework are used?
  • Is any error thrown on the page? If so could you please provide the full error message?
  • Are you using a custom content provider?
  • Could you please provide a sample page reproducing the problem?

On a side note, do you have enabled the create new folder feature of RadFileExplorer? To allow creation of new folders you need to set RadFileExplorer's EnableCreateNewFolder property to true.
Looking forward to hearing from you,
Dobromir
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Xorcist
Top achievements
Rank 1
answered on 21 Jul 2011, 02:22 PM
I'm currently using version 2011.2.712.35 of the Telerik.Web.UI.dll.

The error I recieve is: "FileSystem restriction: The directory 'Local/QFF-2011K-0401/' cannot be created!" when pointed to a local path on the web server (and no directory is created at all), and "FileSystem's restriction: You do not have enough permissions for this operation!" when pointed to a UNC share (and a directory does get created behind the scenes, though it doesn't show in the app until it is reloaded).

I am currently using the CustomeFileSystemProvider supplied with a demo I found here at the Telerik Site.

I have attempted to set the EnabledCreateNewFolder to true, but it didn't change anything.

Here is a ZIP of the project source code (DLLs not included to reduce size).
0
Dobromir
Telerik team
answered on 22 Jul 2011, 03:40 PM
Hi Xorcist,

The reported error's are custom messages thrown by CreateDirecotry() method of the FileSystem class. This method is using standard System.IO.Directory.CreateDirectory() method. I would recommend you to examine the error that are thrown and see the detailed error message.

The error thrown on the local path is a IOExecption and the error thrown on when creating folder on the shared drive is an UnauthorizedAccessException.

Regards,
Dobromir
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Xorcist
Top achievements
Rank 1
answered on 28 Jul 2011, 02:28 PM
Turns out the in following:

DirectoryInfo parentDir = new DirectoryInfo(physicalTargetPath);
Directory.CreateDirectory(PathHelper.AddEndingSlash(physicalTargetPath, '\\') + directoryName, parentDir.GetAccessControl());

the call to parentDir.GetAccessControl() is what was problematic. If just do a straight CreateDirectory with just the path name everything started to work just fine. Is this a security issue? I'm not sure exactly why the GetAccessControl was causing an issue. I gave Network Service rights to the root level directories in question... is there another user that would need credentials? Perhaps the IUSR?
0
Dobromir
Telerik team
answered on 02 Aug 2011, 05:58 PM
Hi Xorcist,

This is indeed very strange. This overload of CreateDirecotry() ensures that the DirectoryItem will not be accessed by another thread.

Regarding the account permissions, IUSR account is the default account that is used by IIS7 and you should grant permissions to it as well. Please find more detailed information regarding the IIS UserAccounts in the following article:
http://learn.iis.net/page.aspx/140/understanding-built-in-user-and-group-accounts-in-iis-7/

Kind regards,
Dobromir
the Telerik team

Browse the vast support resources we have to jump start 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.

Tags
FileExplorer
Asked by
Xorcist
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Xorcist
Top achievements
Rank 1
Share this question
or