0
사용자 이름과 암호로 외부 웹 사이트를 열려고합니다. 올바른 자격 증명을 가지고 있지만 다음 코드를 시도 할 때 "로그온 실패 : 알 수없는 사용자 이름 또는 잘못된 암호"오류가 발생합니다.자격 증명이있는 Windows 양식에서 URL 열기
Dim username As String = "username"
Dim password As New System.Security.SecureString
'Set value for SecureString type variable
Dim plainPassword As String = "pass"
For Each c As String In plainPassword.ToCharArray
password.AppendChar(c)
Next c
Dim IEprocess As System.Diagnostics.Process = New System.Diagnostics.Process
IEprocess.StartInfo.FileName = "http://www.website.com/"
IEprocess.StartInfo.UserName = username
IEprocess.StartInfo.Password = password
IEprocess.StartInfo.UseShellExecute = False
IEprocess.Start()
의견이 있으십니까?