Can do everything but create new folder?

6 posts, 0 answers
  1. Xorcist
    Xorcist avatar
    92 posts
    Member since:
    Apr 2009

    Posted 18 Jul 2011 Link to this post

    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?
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 21 Jul 2011 Link to this post

    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!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Xorcist
    Xorcist avatar
    92 posts
    Member since:
    Apr 2009

    Posted 21 Jul 2011 Link to this post

    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).
  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 22 Jul 2011 Link to this post

    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!

  6. Xorcist
    Xorcist avatar
    92 posts
    Member since:
    Apr 2009

    Posted 28 Jul 2011 Link to this post

    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?
  7. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 02 Aug 2011 Link to this post

    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.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017