ClarkKent101
Programmer
Hi Everyone,
I'm trying to create a directory listing using <cfftp> to connect and then list the files of a directory. I keep getting this error everytime i execute my code..
"The cause of this exception was that: Accept timed out"
Here is my code..
---------------------------------
<cfftp server="11.111.11.111" connection="myftp" action="open" username="someUserName" password="somePassword" stoponerror="no">
<cfoutput><span class="success">Connection Successful? #cfftp.Succeeded#</span></cfoutput><br /><br />
<cfftp action="listdir" stoponerror="yes" name="listfiles" directory="C:\Files\" connection="myftp">
<cfoutput query="listfiles">#name#</cfoutput><br /><br />
<cfftp action="close" connection="myftp" stoponerror="no">
<cfoutput>Closed Successfully? #cfftp.Succeeded#</cfoutput><br />
---------------------------------
The line it points to when i get the "The cause of this exception was that: Accept timed out." error is the following:
---------------------------------
<cfftp action="listdir" stoponerror="yes" name="listfiles" directory="C:\Files\" connection="myftp">
---------------------------------
I am probably doing something wrong in my code because i've tried serveral different ip addresses that i know are up and running but i still get that error.
Any ideas as to what I'm doing wrong?
Thanks for the help,
- CK
I'm trying to create a directory listing using <cfftp> to connect and then list the files of a directory. I keep getting this error everytime i execute my code..
"The cause of this exception was that: Accept timed out"
Here is my code..
---------------------------------
<cfftp server="11.111.11.111" connection="myftp" action="open" username="someUserName" password="somePassword" stoponerror="no">
<cfoutput><span class="success">Connection Successful? #cfftp.Succeeded#</span></cfoutput><br /><br />
<cfftp action="listdir" stoponerror="yes" name="listfiles" directory="C:\Files\" connection="myftp">
<cfoutput query="listfiles">#name#</cfoutput><br /><br />
<cfftp action="close" connection="myftp" stoponerror="no">
<cfoutput>Closed Successfully? #cfftp.Succeeded#</cfoutput><br />
---------------------------------
The line it points to when i get the "The cause of this exception was that: Accept timed out." error is the following:
---------------------------------
<cfftp action="listdir" stoponerror="yes" name="listfiles" directory="C:\Files\" connection="myftp">
---------------------------------
I am probably doing something wrong in my code because i've tried serveral different ip addresses that i know are up and running but i still get that error.
Any ideas as to what I'm doing wrong?
Thanks for the help,
- CK