Hangs on putFile (wodFtpDLX / wodFtpDLX.NET)
Hi, I'm able to connect to the server but it hangs on putFile(C:\Folder\File.TXT, /incoming/folder) command.
by Vlad, (3429 days ago)
Hi, I'm able to connect to the server but it hangs on putFile(C:\Folder\File.TXT, /incoming/folder) command.
by Jasmine, (3429 days ago) @ Vlad
Hi Vlad,
can you please give us more details? What component exactly are you using? Do you get any errors?
If you try our sample apps that are distributed with the component, to transfer same file, does it work?
Jasmine.
by Vlad, (3429 days ago) @ Jasmine
I'm using SSH/SFTP. It doesn't send an errors. It just sits on the putFile line forever.
init(......)
{
wod.ConnectedEvent += new WeOnlyDo.Client.FtpDLX.ConnectedDelegate(wodFTPDLX_ConnectEvent);
wod.DoneEvent += new WeOnlyDo.Client.FtpDLX.DoneDelegate(wodFTPDLX_DoneEvent);
wod.ProgressEvent += new WeOnlyDo.Client.FtpDLX.ProgressDelegate(wodFtpDLX_ProgressEvent);
keyPassword = _keyPassword;
username = _userName;
host = _host;
licenseKey = _licenseKey;
keyPath = _keyPath;
sourceFilePath = _sourceFile;
remoteFolderPath = _remoteFolderPath;
}
connect(...)
{
WeOnlyDo.Security.Cryptography.KeyManager keyManager = new WeOnlyDo.Security.Cryptography.KeyManager();
keyManager.Load(keyPath, keyPassword);
//Set authentication to public key type.
wodSFTP.Authentication = WeOnlyDo.Client.Authentications.PublicKey;
//Connect private key from wodKeyManager.NET to wodSFTP.NET.
wod.Blocking = true; //Use synchronous connections
wod.Login = username;
wod.Hostname = host;
wod.Protocol = WeOnlyDo.Client.Protocols.SFTP;
wod.LicenseKey = licenseKey;
wod.Port = 22;
wod.PrivateKey = keyManager.ToXmlString(WeOnlyDo.Security.Cryptography.SSHKeyTypes.RSAKey, true);
wodSFTP.Connect();
}
public void wodFTPDLX_ConnectEvent(object Sender, WeOnlyDo.Client.FtpConnectedArgs Args)
{
wod.PutFile(sourceFilePath, remoteFolderPath);
}
Hi Vlad,
can you please give us more details? What component exactly are you using? Do you get any errors?
If you try our sample apps that are distributed with the component, to transfer same file, does it work?
Jasmine.
by Jasmine, (3429 days ago) @ Vlad
Hi Vlad.
Please use blocking or events. But not both. You should not execute methods from within events whem using blocking mode since app may hang.
Can you change that in you code and try again?
Jasmine
by Vlad, (3429 days ago) @ Jasmine
I commented out the 'blocking' but now the connected event does not fire.
by Vlad, (3429 days ago) @ Vlad
This time I kept block set on true and events are firing now. Code is no longer hanging on putFile.
by Jasmine, (3429 days ago) @ Vlad
HI Vlad,
excellent, I'm glad it's solved.
I wanted to suggest to move PutFile outside of Connected event, and put it next line after Connect method call - this is typical for blocking operations.
Jasmine.

Count us as a satisfied WeOnlyDo customer. We appreciate your terrific support to get the secure Telnet working properly.

Just thought you'd like to know that my gateway app with your SMTP Server component held the line against a DDOS attack today...

Your customer service was excellent, and I will look at your products in the future for precisely that reason.

The SFTP ocx is one of the finest pieces of programming I have seen. It worked out of the box...

...with WOD's excellent support I was able to bypass Winsock and focus on the task at hand...

Fantastic product by the way, it has helped us tremendously on a daily basis. Keep up the good work.

May I say how nice it is to work with components so complete and self-explanatory that using them in my application is as instinctive as though I wrote them myself?

Many thanks for your excellent support service. I can see why you have a long list of excellent testimonials on your website.

We have recently completed a large 1200+ location project where reliable Telnet and SSH connectivity was required. wodSSH worked flawlessly and allowed our staff to complete our project ontime and within budget.

Thank you so much for your hard work and commitment in producing well thought-out solutions. WeOnlyDo is very committed to customer satisfaction!

