Microsoft Internet Transfer Control

Hi All, I need to ftp a file inside the program, so I am using Microsoft Internet Transfer Control. While trying to use getchunk method in statechanged event I am getting an error 35764 "Still executing last request". the code is very simple and I don't understand what is wrong. If anyone has a suggestion, please let me know.

MoriahAsked:
Who is Participating?
 
AtulGuptaConnect With a Mentor Commented:
This would usually happen in case the status returned is icResponseReceived. You would normally have to work using icResponseCompleted
0
 
bhat_santosh071200Commented:
The 'Execute' command works asynchronously. After a line which uses this command, you have to wait for the execute command to be fully executed.
This will be solution for your problem.
Note:
But, if you have used a ftp command like 'DIR' and result is empty directory/list, then state_changed event is not executed.So, stillexecuting property is always true. this will result in everlasting loop or if you are not checking for still executing property, you will get error 35764. Then you will have to use 'SIZE' ftp command and check for the size before executing the 'DIR' statement.
0
 
costelloCommented:
Rejecting bhat_santosh' comment, accepting AtulGupta's comment.
0
All Courses

From novice to tech pro — start learning today.