11

I have a windows 2008 server running with FTP 7 on IIS 7.

I have it configured to connect as it is out of the box, with a particular user (lets say john) with read/write access.

When I use my FileZilla client software, I can connect to the server as john just fine. No problems at all. However, when I try to connect using Windows Explorer or using the cmd prompt I get stone walled, saying "Login failed". My client machine is Windows Vista Ultimate.

Does anyone know what might be causing this?

Joseph
  • 1,726
  • 3
  • 19
  • 22
  • What do you see in the IIS logs on the server? Show us what logs are entered when the login fails and we'll be better able to diagnose this. – Christopher Cashell Jul 08 '09 at 17:46
  • @Christopher I couldn't find any logs, but I did find out what the problem was I think. I've posted an answer to detail the solution. – Joseph Jul 13 '09 at 13:02

5 Answers5

16

I just want to say that all the answers were helpful to me.

In the end, however, the solution I came to was actually quite simple, and I should have thought of it sooner.

I realized that I had not restarted the server after I installed FTP 7. I didn't actually think this was required, but after restarting the box and seeing windows explorer and the ftp cmd working, I came to the conclusion that it must be necessary to some extent.

So, for anyone having the same issue that I've had, make sure to restart the box after you've installed FTP 7.

Joseph
  • 1,726
  • 3
  • 19
  • 22
2

Make sure you are including a username in your requests. For example, when you connect with Windows Explorer, enter the URL as something like:

ftp://USERNAME@ftp.your-ftp-host.com

Alternately, you can usually also specify the password on the line like:

ftp://USERNAME:PASSWORD@ftp.your-ftp-host.com

Christopher Cashell
  • 8,999
  • 2
  • 31
  • 43
  • Is this a requirement even if Windows Explorer prompts me for my user name and pasword if I don't include it in the request? I'm going to try this and see if it works, but I would think that is very odd that I have to include authentication in my request rather than specifying it using the authentication dialog. – Joseph Jul 08 '09 at 12:36
  • If you're getting prompted for it, then this probably isn't required. I was concerned that you it was trying to authenticate as anonymous/ftp and that was failing. – Christopher Cashell Jul 08 '09 at 17:45
1

Are you telling Explorer / ftp.exe to connect with a certain username, rather than 'Anonymous'?

What errors show up in the IIS log?

MikeyB
  • 38,725
  • 10
  • 102
  • 186
  • I'm prompted for a user name, which I input, and then a password, which I input, and then it says "Login Failed" (for ftp.exe). Windows Explorer just brings up the authentication dialog over and over again until I finally hit cancel. I'm definitely not logging in as 'Anonymous', though. – Joseph Jul 08 '09 at 12:35
1

If the other answers fail to solve your problem and there's a firewall in between you and the ftp server the firewall could be causing problems with passive mode ftp connections. Which is what explorer uses by default. You can change explorer to use active connections (also called port mode) with the following steps.

  1. Open Internet Explorer
  2. Tools->Internet Options
  3. Goto the advanced tab
  4. Under Browsing, click to clear the Enable folder view for FTP sites check box.
  5. Click to select the Use Passive FTP (for firewall and DSL modem compatibility) check box.
3dinfluence
  • 12,409
  • 2
  • 27
  • 41
  • Based on the error you're getting I think this is unlikely but I've seen Windows give some odd error messages in the past. – 3dinfluence Jul 08 '09 at 00:01
1

I had the same issue, and the answers mentioned above didn't work. Then I noticed that the default application pool didn't run. Since I only needed FTP, I only installed the FTP services in Win2008. The solution for me was to install the Webserver-components (basic webserver functionality) in the server functions. After this, I could start the default application pool (no restart required ;-) and the FTP login worked.

Falcon Momot
  • 24,975
  • 13
  • 61
  • 92