Access Denied with correct Userid/pwd

Advertisement

Sowmya
Joined:
Posts:
10
Location:
Bangalore

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,556
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum