Home
%3CLINGO-SUB%20id%3D%22lingo-sub-482264%22%20slang%3D%22en-US%22%3EFTP%20over%20SSL%20-%20Data%20channel%20port%20range%20change%20does%20not%20take%20affect%20until%20restarting%20the%20FTP%20Service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-482264%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EPROBLEM%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EConsider%20the%20following%20scenario%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EYou%20are%20setting%20up%20FTP%20over%20SSL%20in%20IIS.%3C%2FLI%3E%0A%3CLI%3EYou%20modify%20the%20data%20channel%20port%20range%20and%20configure%20your%20firewall%20to%20allow%20the%20traffic%20in%20the%20port%20range.%3C%2FLI%3E%0A%3CLI%3EWhen%20you%20try%20to%20use%20FTP%20over%20SSL%20you%20get%20%22could%20not%20retrieve%20directory%20listing%22%20error%20message.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ECAUSE%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOne%20of%20the%20reasons%20for%20this%20is%20that%20the%20data%20channel%20port%20range%20changes%20does%20not%20take%20affect%20until%20you%20restart%20the%20Microsoft%20FTP%20Service.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ERESOLUTION%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20need%20to%20restart%20the%20Microsoft%20FTP%20Service%20for%20the%20changes%20in%20the%20data%20channel%20port%20range%20to%20take%20affect.%20Restarting%20the%20IIS%20services%20(e.g.%3A%20using%20IISRESET%20command%2C%20which%20is%20not%20recommended)%20is%20not%20enough.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHappy%20troubleshooting...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E--%3CBR%20%2F%3EAMB%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-482264%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20may%20get%20%22could%20not%20retrieve%20directory%20listing%22%20error%20message%20when%20working%20with%20FTP%20over%20SSL%2C%20even%20you%20configure%20firewall%20after%20setting%20the%20data%20channel%20port%20range.%20Continue%20reading%20to%20find%20out%20why.%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Microsoft

PROBLEM

 

Consider the following scenario:

 

  • You are setting up FTP over SSL in IIS.
  • You modify the data channel port range and configure your firewall to allow the traffic in the port range.
  • When you try to use FTP over SSL you get "could not retrieve directory listing" error message.

 

CAUSE

 

One of the reasons for this is that the data channel port range changes does not take affect until you restart the Microsoft FTP Service.

 

RESOLUTION

 

You need to restart the Microsoft FTP Service for the changes in the data channel port range to take affect. Restarting the IIS services (e.g.: using IISRESET command, which is not recommended) is not enough.

 

Happy troubleshooting...

 

--
AMB