Exception.Message:'You system did not provide str - WeOnlyDo Discussion board

Exception.Message:'You system did not provide str (General questions)

by mygod.ou, Thursday, December 07, 2006, 06:07 (6561 days ago)

My code:
------------------------------
try
with wodSFTP1 do
begin
Hostname := FHostName;
Login := FUserID;
ProxyType := ProxyNone;
if ByPasswd then
begin
Authentication := authPassword;
Password := FUserPass;
end
else
begin
Authentication := authPubkey;
PrivateKey := FPrivateKey;
end;

Blocking := True;
Connect;
GetFile;
Disconnect;
end;
except
on E:Exception do
begin
ShowMessage(E.Message);
end;
end;
------------------------------

If I continue to do this, sometimes it will raise the exception:'You system did not provide string representation of the error'.

Who can help me?

Re: Exception.Message:'You system did not provi

by wodDamir, Thursday, December 07, 2006, 09:49 (6561 days ago) @ mygod.ou

Hi,

When does this error occur? When you use pubKey or password authentication? What method causes it?

Also, you need to provide localpath and remotepath arguments to GetFile Method.

Regards,
Damba