question about virtual paths

11 posts, 0 answers
  1. Jen
    Jen avatar
    17 posts
    Member since:
    Jan 2009

    Posted 10 Sep 2009 Link to this post

    Is it possible to show files from a virtual directory I've created in IIS?
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 11 Sep 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jen
    Jen avatar
    17 posts
    Member since:
    Jan 2009

    Posted 11 Sep 2009 Link to this post

    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.
     
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 15 Sep 2009 Link to this post

    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.
  6. Jen
    Jen avatar
    17 posts
    Member since:
    Jan 2009

    Posted 16 Sep 2009 Link to this post

    Hi Fiko,

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

  7. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 16 Sep 2009 Link to this post

    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
  8. Jen
    Jen avatar
    17 posts
    Member since:
    Jan 2009

    Posted 18 Sep 2009 Link to this post

    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.


  9. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 18 Sep 2009 Link to this post

    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

  10. Jack Voss
    Jack Voss avatar
    27 posts
    Member since:
    May 2010

    Posted 25 Mar 2011 Link to this post

    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 ?
  11. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 28 Mar 2011 Link to this post

    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
  12. Jack Voss
    Jack Voss avatar
    27 posts
    Member since:
    May 2010

    Posted 01 Apr 2011 Link to this post

    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.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017