Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Distinct VIT: Ftp Client: OnError

   Products   Downloads   Sales   Support   About us
  VIT
 



        
 
Summary

Notifies that a local error has occurred.

Description

The OnError event occurs when a property is accessed in an illegal way or when a connection with the FTP server cannot be established. The following describes all possible error codes delivered by this event.

Value Meaning
ERR_CANNOT_CHANGE_XFER_TYPE Cannot change transfer type during file transfer. This may have been caused by calling the GetFile, PutFile or AppendFile methods during a file transfer.
ERR_CANNOT_CHANGE_XFER_MODE Cannot change transfer mode during file transfer. This may have been caused by calling the GetFile, PutFile or AppendFile methods during a file transfer.
ERR_CANNOT_CHANGE_LIST_TYPE Cannot change list type during directory listing. This may have been caused by calling the List method while a directory listing was in progress.
ERR_CANNOT_CHANGE_PORT Cannot change the remote port while connected.
ERR_PORT_UNDEFINED Remote port must be specified before connecting. The Port property must be set before calling the Connect method.
ERR_HOST_UNDEFINED Remote host must be defined before connecting.
ERR_IN_TRANSFER A file transfer or directory listing is in progress.
ERR_CANNOT_CONNECT Unable to connect. The port or the host property may be set incorrectly or the host may be down.
ERR_NEED_ACCOUNT The server requires account information to complete login.
ERR_CANNOT_LOG_IN Unable to login. The user name or password may be incorrect.
ERR_NOT_CONNECTED Must be connected to perform this operation.
ERR_IN_ACTION Another action is in progress.
ERR_NO_DIR_TARGET Target directory is not specified.
ERR_NO_NEW_DIR_NAME New directory name is not specified.
ERR_NO_FILE_TARGET Target file not specified.
ERR_NO_NEW_FILE_NAME New file name not specified.
ERR_NO_REMOTE_FILE Remote file not specified.
ERR_NO_LOCAL_FILE Local file not specified.
ERR_CANNOT_OPEN_LOCAL_FILE Unable to open local file.

ERR_FW_SERVER_NOT_DEFINED
Firewall server is not specified. Connections to a remote host via a firewall can only be established if the firewall server is defined.

Example

Sub FTPClient_OnError (ErrorCode As Integer)
If ErrorCode = ERR_CANNOT_CONNECT Then
MsgBox "Unable to connect to remote host", 64, "Sample Program"
End If
End Sub



Browse FAQ

Related Products
Mail Objects

Recommended Add-On
Network Monitor,
Protocol Analyzer


Raves
"The night before I went on summer holiday we had to make some 'last minute' configuration changes to approx. 300 routers, a tedious job to do manually with telnet. We went along with MS Excel containing a list of IP-adresses to the routers, and the VIT telnet-component. One hour later the VBA-application (small is beautiful) was working, and after another hour all of our routers were updated with the new configuration. I just say a big "Thanks" to you all for a good sleep that night."
Eirik Brendholen, Ergo Integration AS

"We conducted a test session to compare the performance of similar products, and Distinct's product was better!" [more]
Dr. Shyam Sunder, Carnegie Mellon University

"Together with Distinct, we were able to offer our users an ideal soution to enabling them to connect to Yahoo! Pager, and to do so both quickly and reliably." [more]
Brian Park,
Producer of Yahoo! Pager, Yahoo! Inc.


  10/13/2008   Legal notices | PRIVACY Policy | Networking News |