Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Access Denied with correct Userid/pwd

I do not know what the str6 and str8 variables contain. If they contain username/password, you need to pass then as arguments to open command.
Sowmya

Access Denied with correct Userid/pwd

Hi,

I get a access denied error while connecting through winscp scripting feature in vb.net although the password is correct. Thesame works perfect in console. Could you please let me know what is wrong in teh below code?

With WinSCP.StandardInput
.WriteLine("option transfer binary")
.WriteLine(str6)
.WriteLine(str8)
End With
WinSCP.StandardInput.Close()
WinSCP.WaitForExit()
the WinSCP.ExitCode always gives a value of 1 even if the userid /pwd is correct.

Could you please help me on this.