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

setting viewpath and upload path for document manager

3 Answers 42 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 13 Jul 2016, 10:21 AM

i am following this guide

i need the document manager to reference to a physical path instead of virtual path

upon trying to integrate the example to my project, i receive the following error in CustomFileSystemProvider.cs.

stating that 'System.IO.PathHelper' is inaccessible due to its protection level

 

or is there another example for using physical path on DocumentManager?

3 Answers, 1 is accepted

Sort by
0
Benjamin
Top achievements
Rank 1
answered on 14 Jul 2016, 02:26 AM
Hi i got it working. would like to check if there is a way for the mapping file to get the physical path from web.config?
0
Benjamin
Top achievements
Rank 1
answered on 14 Jul 2016, 02:38 AM
or is there anyway i can pass values into the CustomFileSystemProvider?
0
Stanimir
Telerik team
answered on 18 Jul 2016, 06:04 AM
Hi,

Thank you for contacting us.

Regarding the passing of values to the CustomFileSystemProvider I found the following forum thread: Passing parameter to FileBrowserContentProvider.

On your question "if there is a way for the mapping file to get the physical path from web.config", there is no direct way of doing so, but you can try generating it dynamically based on the web.config  settings, however currently we do not have such an example.

Regards,
Stanimir
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Editor
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Benjamin
Top achievements
Rank 1
Stanimir
Telerik team
Share this question
or