Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: There is already an FTP request in progress

$
0
0
Re: There is already an FTP request in progress
West Wind Internet Protocols
Re: There is already an FTP request in progress
Nov. 12, 2012
02:58 pm
3N50W3FCNShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Phil Sherwood

How WinInet reports errors is a bit of a mystery at times. It's mixing Windows API errors plus wire errors from the network and often that causes some confusion of the messages.

It sounds like this is a low level Windows Error message (ie. an IO error) that got translated to a WinInet error message.

+++ Rick ---



Never mind. The error was being thrown because the 2nd file couldn't be opened. Why was it giving this error instead of an unable to access file error? Who knows? I deleted the corrupt file and recreated it and now the upload works on this client's system.

Phil


I have one client that gets this error whenever they try to upload files to our web site. "There is already an FTP request in progress on this session"

Here's an example of the code I'm using:

loIP.FTPConnect('my.server.com')
loIP.FTPSendFileEx(lcSourceFile,lcTargetFile)
loIP.FTPSendFileEx(lcNewSourceFile,lcNewTargetFile)
loIP.FTPClose()

It gets the error in between the two FTPSendFileEx calls. I've tried putting an INKEY(5) in between them and I've also tried putting an FTPClose and FTP Connect between them to close the connection and reopen it. Still get the error. What else can I check?

On the FTP server it receives the first file and then says the transfer was OK and then it opens the connection to the 2nd file and just hangs because the client threw the error.

-Phil




Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles