You are trying to navigate to a non-existing folder or you do not have proper permissions to view this folder. Please, contact the administrator.

2 Answers 263 Views
FileExplorer
Vivek
Top achievements
Rank 1
Vivek asked on 04 Oct 2021, 03:37 PM

I am getting error "You are trying to navigate to a non-existing folder or you do not have proper permissions to view this folder.
Please, contact the administrator." in my production environment. It is happening randomly. 

 

Thanks.

2 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 04 Oct 2021, 06:27 PM

Hello Vivek,

The thrown error means that the application holding RadFileExplorer does not have enough permissions to access the path given to RadFileExplorer, hence the error is thrown. You can find detailed information on this matter here.

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Bill
Top achievements
Rank 1
commented on 14 Jan 2022, 11:13 PM

You can find detailed information on this matter here?  WHERE?
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 11 Mar 2025, 11:22 AM

Hi Vessy,

 

We have same issues, keep on getting the message "You are trying to navigate to a non-existing folder or you do not have proper permissions to view this folder. Please, contact the administrator." We are 100% sure that app pool has proper right to the folder. As soon as we select folder programatically, always the message alert is popping up. After clicking away the message, the folders content is showing properly and I can upload to it.

Marc

Vasko
Telerik team
commented on 14 Mar 2025, 07:32 AM

Hi Marc,

I hope you are doing well!

The purpose of the "You are trying to navigate to a non-existing folder or you do not have proper permissions to view this folder. Please, contact the administrator." alert message is to inform the users that the file/images they are about to load/want to load/edit, actually does not exist on the server. As you have already noticed, it pops up because the location of the specified image is a web address but not a virtual path allowed to be listed in the image manager. 

I will provide two solutions below, so you can test them and choose the one that fits your scenario the best:

Option 1: Remove the pop-up

This will be a little bit tricky, as the alert() message is shown from a private method in RadFileExplorer.cs:
private void ExplorerAlert(string message)
{
    //try to get localized error message
    string localizedMessage = Localization.GetString(message);
    if (localizedMessage.Length > 0) message = localizedMessage;
 
    //escape backslash and double quote, keep escaped new lines
    message = message.Replace("\\", "\\\\").Replace("\"", "\\\"").Replace("\\\\r", "\\r").Replace("\\\\n", "\\n");
 
    if (ScriptManager != null)
        ScriptManager.RegisterStartupScript(_updatePanel, _updatePanel.GetType(), "ExplorerAlert", string.Format("alert(\"{0}\");", message), true);
}

The ExplorerAlert("nonExistingFolder") message is shown if the ResolveDirectory() method of the FileBrowserContentProvider of RadEditor returns null after the uploading:

private void ProcessUploadedFiles()
{
    ...
        if(ContentProvider.ResolveDirectory(currentDir) == null)
        {
            errorMessage += "NonExistingFolder";
            continue;
        }
        ...
}

So the only solution here would be to ensure that the ResolveDirectory() never returns null. Nevertheless, even if you handle this it is possible the control to throw the error again as the path to the uploaded path is set as InitialPath after the uploading (in the same ProcessUploadedFiles() method), which will bring the same NonExistingFolder error if the path to the uploaded path is changed.

Option 2: Change the pop-up error message

The easiest way to do this is to change directly the localization string, used for the error message. The content of the error message could be found inside "RadEditor.Dialogs.resx" under the name "NonExistingFolder". More information regarding the localization and how to modify it is available here: Using Global Resource Files.

Telerik.Web.UI\Resources\RadEditor.Dialogs.resx

  <data name="Common_NonExistingFolder" xml:space="preserve">
    <value>You are trying to navigate to a non-existing folder or you do not have proper permissions to view this folder. Please, contact the administrator.</value>
  </data>

Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
commented on 17 Mar 2025, 09:44 AM

 

 

Thanks for your swift reaction.

 

It appears that this was thrown because of a faulty
StandAlone5.AdditionalQueryString = "&PreselectedItemUrl="

which tried to navigate to another folder.

Thanks a lot for your time.

 

Regards,
Marc

Tags
FileExplorer
Asked by
Vivek
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or