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.

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
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.
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.
Rejecting bhat_santosh' comment, accepting AtulGupta's comment.
All Courses

From novice to tech pro — start learning today.