Previous Next

Thread: Can log in to FTP but fail to get a directory listing

Last post 08-16-2008 3:34 PM by robmcm. 7 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (8 items)

Sort Posts:

  • 05-07-2008, 7:05 AM

    • insfazee
    • Not Ranked
    • Joined on 05-07-2008, 9:56 AM
    • Posts 2

    Can log in to FTP but fail to get a directory listing

    I have setup FTP Services on a 64bit installation of Windows Server 2008.

    From Internet Explorer 7.0 I am able to Log In to the server but the directory listing fails to appear. The message "Internet Explorer cannot display the webpage" appears.

    From windows explorer when you type ftp://[ServerIPAddress] into the Address field the Logon dialog box appears and after entering a valid user name and password a time out message appears "an error occured opening that folder on the FTP Server".

    At the Server, the sessions opened by aby of the above appear as expected.

    If from the command prompt one uses ftp.exe everything connects okay and a dir results in the correct directory listing appearing! Very strange?? It is also possible to transfer files without problems using the ftp.exe program.

    Any ideas?

    infrazee
  • 05-07-2008, 8:04 AM In reply to

    Re: Can log in to FTP but fail to get a directory listing

    It's obviously an IE issue since the command line client works.  IE is notoriously poor at FTP.  You might find some information in the FTP logs, but you would likely get better help in an IE support forum.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 05-07-2008, 9:24 AM In reply to

    • insfazee
    • Not Ranked
    • Joined on 05-07-2008, 9:56 AM
    • Posts 2

    Re: Can log in to FTP but fail to get a directory listing

    It is probably not an IE issue as there was no problem with IE when the FTP Site was hosted on Windows Server 2003. Also trying to use FTP to publish from Front Page and Expression Web reports that "Could not find a Web Server on port 21 ..."

    infrazee

    infrazee
  • 05-07-2008, 12:22 PM In reply to

    Re: Can log in to FTP but fail to get a directory listing

    IE is using different type of data connections than ftp.exe does.

    IE will use passive data connections.
    ftp.exe will always use active data connections.

    What does it mean to you? You will have to make changes to your firewall.

    Win2008 has 2 flavors of FTP server. One is available for download from www.iis.net (the preferred one, called Microsoft FTP Service for IIS 7.0) and there also is a legacy FTP server that is built-in.

    If you are using "Microsoft FTP Service for IIS 7.0, you can find information on firewall setup on http://blogs.iis.net/jaroslad/archive/2007/09/29/windows-firewall-setup-for-microsoft-ftp-publishing-service-for-iis-7-0.aspx

    If you are running the legacy FTP server, then much of the information from the blog still applies. You could make fiewall exception to allow all traffic to inetinfo.exe, enable statefulFtp on the windows firewall, configure msftpsvc with explicit port range and open that port range explicitly on the firewall.

     

    Jaroslav Dunajsky (MSFT, IIS)
  • 06-05-2008, 4:34 PM In reply to

    Re: Can log in to FTP but fail to get a directory listing

     Just a question. Have you opened the data ports. I had the same issue, until i allowed ports 49152 through 65535 on the router.

    I setup a certificate, and then assigned AD accounts to the certificate. That got authentication going, in ssl as well, but until i opened those ports, using fireftp to acess the connection, i couldn't see the actual data.

     Probably not that helpful, but its worth a try. Here is my post i made, and now its all working.

    http://forums.iis.net/t/1149712.aspx

  • 06-05-2008, 11:50 PM In reply to

    Re: Can log in to FTP but fail to get a directory listing

    Ditto.  We ran into the same thing until we opened certain passive ports and assigned them in IIS at machine level. 

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 08-15-2008, 7:38 PM In reply to

    Re: Can log in to FTP but fail to get a directory listing

    I like to know the steps you took in opening the passive ports, I'll try anything since nothing seems to be working for me. and I'm exhausted trying what I think it is.

  • 08-16-2008, 3:34 PM In reply to

    • robmcm
    • Top 50 Contributor
    • Joined on 05-26-2006, 9:05 PM
    • Redmond, WA
    • Posts 84

    Re: Can log in to FTP but fail to get a directory listing

    The following walkthrough will show you how to specify your FTP passive port range:

    http://learn.iis.net/page.aspx/309/configuring-ftp-firewall-settings/

    Bear in mind, however, that you will need to open up the ports that you define in this walkthrough in your firewall's settings. If you're using the built-in Windows Firewall on your system, you should see Jaro's blog post on configuring that:

    http://blogs.iis.net/jaroslad/archive/2007/09/29/windows-firewall-setup-for-microsoft-ftp-publishing-service-for-iis-7-0.aspx

    Robert McMurray
    Tags:
Page 1 of 1 (8 items)
Page view counter