I am attempting to use the provided custom connector for physical and shared folder's paths. However, when I attempt to load the default page I recieve the following error:
Line 310: Public Overrides Function CheckReadPermissions(ByVal folderPath As String) As Boolean
I modified my directories like so:
Default.APSX.VB
Partial
Public
Class
_Default
Inherits
System.Web.UI.Page
Protected
Sub
Page_Load(sender
As
Object
, e
As
EventArgs)
Dim
viewPaths
As
String
() =
New
String
() {
"C:\01-Admin"
,
"\\Telerik.com\Path\SharedDir"
}
Dim
uploadPaths
As
String
() =
New
String
() {
"C:\01-Admin"
,
"\\Telerik.com\Path\SharedDir"
}
Dim
deletePaths
As
String
() =
New
String
() {
"C:\01-Admin"
,
"\\Telerik.com\Path\SharedDir"
}
RadFileExplorer1.Configuration.ViewPaths = viewPaths
RadFileExplorer1.Configuration.UploadPaths = uploadPaths
RadFileExplorer1.Configuration.DeletePaths = deletePaths
RadFileExplorer1.Configuration.SearchPatterns =
New
() {
"*.*"
}
RadFileExplorer1.Configuration.ContentProviderTypeName =
GetType
(CustomFileSystemProvider).AssemblyQualifiedName
End
Sub
End
Class
MappingFile.mapping
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
CustomFileBrowserProvider
>
<
Paths
>
<
genericHandlerPath
>FileSystemHandler.ashx</
genericHandlerPath
>
</
Paths
>
<
Mappings
>
<
Mapping
>
<
PhysicalPath
>
<![CDATA[C:\01-Admin]]>
</
PhysicalPath
>
<
VirtualPath
>
<![CDATA[MyCusomRootDir 1/]]>
</
VirtualPath
>
</
Mapping
>
<
Mapping
>
<
PhysicalPath
>
<![CDATA[\\Telerik.com\Path\SharedDir]]>
</
PhysicalPath
>
<
VirtualPath
>
<![CDATA[MySharedRootDir/]]>
</
VirtualPath
>
</
Mapping
>
</
Mappings
>
</
CustomFileBrowserProvider
>
Any help much apprciated.