FTP MLST command?

Question: A quickie question about the FTP2 control. I have some clients with strange FTP servers that return the directory listings in formats that no control seems to be able to handle (although I have not tried yours!). However, it is next to impossible to test, since I do not have access to their server. For them, we use the […]

Using Chilkat in Managed C++

The Chilkat VC++ static libraries are for unmanaged C++ applications. A Managed C++ application (using Microsoft’s Managed Extensions for C++) runs within the .NET Framework and therefore must use the Chilkat .NET assembly. The Chilkat C++ online reference documentation and online examples are for unmanaged C++ applications. For Managed C++, the best choice is to read the C# online documentation […]

Upload from ASP code to FTP Server

I get the following support problem about once per week from ASP developers: The ASP developer wants to upload a file from the client computer where the browser is running, to an FTP server.  He writes ASP code to do the FTP upload, but cannot understand why the file is not found.  The thing the ASP developer doesn’t realize is […]

Determining FTP2 Connection Settings

There are many FTP2 component properties that affect how data connections are established between the FTP client (Chilkat FTP2) and the FTP server. Finding a workable combination of property settings for a given client/server situation can be difficult.  This blog post can hopefully provide some guidance. Before beginning, it is crucial to understand one basic thing about the FTP protocol: […]

SocketError: WSAECONNRESET An existing connection was forcibly closed by the remote host.

Question: What is this error message? How can I avoid such error message in the future? ChilkatLog: ChangeRemoteDir: DllDate: Sep 1 2009 UnlockPrefix: ABC123FTP Username: something Component: .NET 2.0 dir: / SocketError: WSAECONNRESET An existing connection was forcibly closed by the remote host. Error sending on socket send_size: 7 Failed to send CWD command Failed. Answer: This indicates that the […]

FTP to HP3000 Servers

To upload a file via FTP to an HP3000 server, you would type something like this from an interactive FTP prompt: Put myfile.txt myfile;rec=-32,1,f,ascii;disc=250000 To duplicate this with Chilkat, call PutFile such that the remote filename is “myfile;rec=-32,1,f,ascii;disc=250000”. For example: // This is a C# example, but the same concept applies w/ using Chilkat in any of the supported // […]

425 Unable to build data connection: Connection timed out

This error can happen when trying to transfer a file or list a directory in Active (PORT) mode. The problem is usually solved by switching to Passive mode. Set the Ftp2.Passive property equal to True. Explanation of the problem: In Active mode, the data connection is setup like this: The client sends a PORT command telling the server the port […]

(FTP) WSAEACCES An attempt was made to access a socket in a way forbidden by its access permissions

Question (solution is below) Today one of my customer’s got the following connect error when running my application. This same application works just fine on my system as well as almost 100 others. It had run correctly on her computer until she installed an upgrade. The connect error is: Port: 21 Host: www.***.com sockError: 10013 Connect: failed WSAEACCES An attempt […]