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

RadFileExplorer cannot access UNC path

1 Answer 119 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Jinky
Top achievements
Rank 1
Jinky asked on 23 Apr 2013, 06:54 AM
Hi, I have  a RadFileExplorer. I use CustomColumnsContentProvider to load the Treeview but when I use UNC path, base.ResolveRootDirectoryAsTree(path) shows error "Failed to map the path '\\SampleServer\FolderName'"

Here is my Code:

web.config:

<add key="UNCPath" value="\\SampleServer\\FolderName"  />

aspx.cs:

RadFileExplorer1.Configuration.ViewPaths = new string[] { ConfigurationManager.AppSettings["UNCPath"] };


CustomColumnsContentProvider:

 public override DirectoryItem ResolveRootDirectoryAsTree(string path)
 {
     DirectoryItem originalFolder =
base.ResolveRootDirectoryAsTree(path);


Shows error on this part:

     DirectoryItem originalFolder = base.ResolveRootDirectoryAsTree(path);

How can I access UNC in ResolveRootDIrectory?

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 25 Apr 2013, 03:33 PM
Hi Jinky,

The RadFileExplorer's built-in content provider expects VirtualPaths to folders inside the application root to be set to its ViewPaths / DeletePaths / UploadPaths properties. In order to configure RadFileExplorer to work with shared drives or physical paths you need to implement custom content provider. Such provider is available in the following KB article:
Use RadFileExplorer with physical and shared folder's paths

More detailed information on how to implement custom content provider is available in the following help article:
Using custom FileBrowserContentProvider


Regards,
Veselina Raykova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
FileExplorer
Asked by
Jinky
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or