Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodSFTP
- Methods
- Abort
- About
- AppendData
- AppendFile
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- ExtendedCmd
- GetAttributes
- GetData
- GetDataAt
- GetFile
- GetFileAt
- GetFiles
- ListAttributes
- ListDir
- ListNames
- LoopFiles
- MakeDir
- PutData
- PutDataAt
- PutFile
- PutFileAt
- PutFiles
- RealPath
- RemoteClose
- RemoteOpen
- RemoteRead
- RemoteWrite
- RemoveDir
- Rename
- SetAttributes
- SetAttributes64
- Properties
- Authentication
- Blocking
- BufferSize
- ClientName
- Compression
- Encryption
- EncryptionList
- ErrorText
- Extensions
- FingerPrint
- FIPS
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeySignatureList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- MyHostname
- MyIP
- Notification
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- ServerErrorCode
- ServerErrorText
- State
- StateText
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Events
- Methods
- IwodSFTPNotify
- SftpItem
- SftpItems
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Getting Started in ASP
Working with the COM object
In order to insert the wodSFTP COM object into your project, follow these steps:- Install the component on your system by starting its setup program.
- Go to Inetpub/wwwroot folder and create a new ASP page or open an existing one.
-
Add code similar to this to initialize wodSFTPCom:
  <%
  dim Sftp
  set Sftp = Server.CreateObject("WeOnlyDo.wodSFTPCom.1")
-
Set Blocking mode which is needed in scripting environments:
  Sftp.Blocking = 1
-
If you have a licensed version of the product, set the LicenseKey property:
  Sftp.LicenseKey = "xxxx...xxxx"
-
Set other properties and connect:
  Sftp.Hostname = "put.your.hostname"
  Sftp.Login = "put.your.login"
  Sftp.Password = "put.your.password"
  Sftp.Connect
 
  ...
 
  Sftp.ListDir "/"
  Response.Write(Sftp.ListItem)
  Sftp.Disconnect
  %>
-
If an error occurs, you should convert the hexadecimal representation of the error to decimal so that you can locate the error in our list. For example:
  Error Type:
  WeOnlyDo.wodSFTPCom.1 (0x800A9C3F)
  License key missing. You can not use this component in design environment.
  /sftp.asp, line 9
IIS reported error 0x800A9C3F. You should use only 9C3F, when converted to decimal this is 39999 - License Key missing error.
-
Important: If you use the trial version of our product you will always receive the above error. wodSFTP needs to access the registry in order to validate the trial license. As IIS is running under the IUSR_COMPUTER account and does not have access to the registry, you must change IIS privileges and force it to run as Administrator.
Do not do this on production server, it is a potential security problem! This applies only to the trial (demo) version, the licensed version does not have this restriction.
To change IIS privileges, go to Start->Settings->Control Panel->Administrative Tools->Internet Services Manager. Here you will find 'Default Web Site', right-click on it, select 'Properties'. Go to the 'Directory Security' tab, at the top is the 'Anonymous access and authentication control' frame, and an 'Edit' button. Click on 'Edit' button. The 'Authentication Methods' dialog box appears, click the 'Edit' button to see the 'Account used for anonymous access' dialog.
Here you should enter Username: 'Administrator' and for Password: enter the administrator account password. Click on 'Ok' to close all windows and wodSFTP should now run.
Once again: do not do this on a production server, only in test and firewalled environments.