Can FTP Folder be outside of ASP.NET Web Application

Discussion in 'ASP.NET 2.0' started by ZLA, Jan 7, 2009.

  1. ZLA

    ZLA

    I currently have a classic ASP website with a root folder called \FTP. I've built a new ASP.NET web app that will copy files from that folder to one that is part of the ASP.NET web app directory structure. Unfortunately, in my production environment, I have to make the web app a subfolder of the root folder. So my structure will be as follows:

    \FTP
    \MyWebApp
    MyWebPage.aspx
    \FTP_Processing_Folder

    Because of permission issues, I assume my web app won't be able to access the files in \FTP. Is that correct?

    If that is correct, can I just design my folder structure to have the FTP folder inside the web app as follows:


    \MyWebApp
    MyWebPage.aspx

    \FTP \FTP_Processing_Folder

    where only \FTP will be set up for FTP file uploads. Is this correct?

    Lastly, are there any special permission issues I need to worry about with regards to the FTP folder other than to make sure that ASP.NET can access the folder and that FTP users can only access the FTP folder?

    Thanks in advance.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    FTP & HTTP root point to the same location and thus you cannot access directory outside of your web root.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page