This is a migrated thread and some comments may be shown as answers.
IO EXCEPTION ISSUEON TO THE SERVER(FileSystem Restriction)
1 Answer 24 Views
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 2
Ajay asked on 27 Oct 2009, 11:00 AM
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

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 29 Oct 2009, 03:04 PM
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)
{
    try
    {
        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,
Fiko
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.
Asked by
Ajay
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Share this question
or