2 posts, 0 answers
  1. Ajay
    Ajay avatar
    66 posts
    Member since:
    May 2009

    Posted 27 Oct 2009 Link to this post

    Hi Telrik Guys !

     I have deployed my application on to the SERVER.

     When I try to create an FOLDER withan application Iam getting the following exception :-

    FileSystem's restriction: The directory '" + virtualTargetPath + "' cannot be created!";  

    But , when I try to create a FOLDER within an application(within  LOCAL END), Iam able to CREATE a FOLDER.

    Could you guys please suggest me whether there are some permissions issues for the folder or any other problem that exists on to the server.

    Please help.

    Ajay Jamwal
  2. Fiko
    Fiko avatar
    1406 posts

    Posted 29 Oct 2009 Link to this post

    Hello Ajay,

    This issue is not related to the RadFileExplorer control. Please check the exception thrown in the CreateDirectory method :

    public static string CreateDirectory(string physicalTargetPath, string directoryName, string virtualTargetPath)
            DirectoryInfo parentDir = new DirectoryInfo(physicalTargetPath);
            Directory.CreateDirectory(physicalTargetPath + directoryName, parentDir.GetAccessControl());
        catch (DirectoryNotFoundException)
            string message = "FileSystem's restriction: Directory with name '" + virtualTargetPath + "' is not found!";
            return message;
        catch (UnauthorizedAccessException)
            string message = "FileSystem's restriction: You do not have enough permissions for this operation!";
            return message;
        catch (IOException e)
            string message = "FileSystem's restriction: The directory '" + virtualTargetPath + "' cannot be created!";
            return message;
        return string.Empty;

    The exception message will give you a detailed explanation about the source of the exception. Most probably you do not have permissions to create folders in the host server. If this is the case, you need to contact the server administrator to assign you these permissions.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top