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

question about virtual paths

10 Answers 269 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Jen
Top achievements
Rank 1
Jen asked on 10 Sep 2009, 09:11 AM
Is it possible to show files from a virtual directory I've created in IIS?

10 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Sep 2009, 12:33 PM
Hello Jen,

Yes, this is possible - RadFileExplorer works with virtual folders. You just need to set the corresponding virtual path in the configuration.
for example:
<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server"
<Configuration ViewPaths="/MyVirtualFolder" DeletePaths="/MyVirtualFolder" UploadPaths="/MyVirtualFolder" /> 
</telerik:RadFileExplorer> 


Kind regards,
Georgi Tunev
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.
0
Jen
Top achievements
Rank 1
answered on 11 Sep 2009, 01:25 PM
Hello Georgi,

Thank you for your reply. I've tried this, but unfortunately the FileExplorer stays blank.
Also weird: if I select a regular virtual map, I can browse the directory in the treeview, but I cannot see the files within the directory.
 
0
Fiko
Telerik team
answered on 15 Sep 2009, 03:43 PM
Hi Jen,

Actually the paths needs to be set with by using the '~' sign :

<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server">  
<Configuration ViewPaths="~/MyVirtualFolder" DeletePaths="~/MyVirtualFolder" UploadPaths="~/MyVirtualFolder" />  
</telerik:RadFileExplorer>  

Could you please try the suggested above and let me know the result?

Sincerely yours,
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.
0
Jen
Top achievements
Rank 1
answered on 16 Sep 2009, 07:01 AM
Hi Fiko,

Thank you for your reply. I added the '~' to the virtual path, but unfortunately the fileExplorer is still blank.

0
ManniAT
Top achievements
Rank 2
answered on 16 Sep 2009, 09:08 PM
Hi Jen,

a simple question - let's assume your site has the root url http://www.jen.com
What is the path (you can enter in a browser) to the virtual dir?
http://www.jen.com/VDirName - or something else?

And a second one - where is this folder located?
On the server or somewhere on a share - external url?

Regards
Manfred
0
Jen
Top achievements
Rank 1
answered on 18 Sep 2009, 12:01 PM
Hello Manfred,

To answer your first question: you access the virtual directory by using http://www.jen.com/VDirName
To answer your second question: this folder is located on a different server.


0
ManniAT
Top achievements
Rank 2
answered on 18 Sep 2009, 12:16 PM
Hi Jen,

is IIS able to access the path?
In simple words - can open a file with a link like http://www.jen.com/VDirName/MyPic.jpg?

And to make you sure about the above postings (mine and Fiko's) - Fiko's path is correct in your situation.
If the VDir is accessible via http://www.jen.com/VDirName the path shall be ~/VDirName assuming your application is in http://www.jen.com/

Regards
Manfred

0
Jack Voss
Top achievements
Rank 1
answered on 25 Mar 2011, 09:40 PM
I'm having the same problem Jen did in this.  I've tried looking at the parent folder, and the virtual folder is not listed, and I tried pointing directly to the virtual folder.  I can go directly to the contents of my virtual folder in the browser, or display links to the content. 
Is there a solution to this ?
0
Georgi Tunev
Telerik team
answered on 28 Mar 2011, 05:29 PM
Hello Jack,

Could you please share a screenshot of your IIS setup (the virtual directories etc.) that show your setup and what exactly you are trying to do? I'll need information about where is the page located and where is the resource you are trying to refer to.

Regards,
Georgi Tunev
the Telerik team
0
Jack Voss
Top achievements
Rank 1
answered on 01 Apr 2011, 04:14 PM
We have found the problem to be caused by IIS itself.  We created another virtual path with a different name, pointing to the same place and it worked fine.  For some reason there was a problem with the name.

Tags
FileExplorer
Asked by
Jen
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Jen
Top achievements
Rank 1
Fiko
Telerik team
ManniAT
Top achievements
Rank 2
Jack Voss
Top achievements
Rank 1
Share this question
or