登录失败:未知的用户名或密码错误 [英] Logon failure: unknown user name or bad password

查看:80
本文介绍了登录失败:未知的用户名或密码错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建代码以在vb.net中打开网站并将使用名称和密码传递给该网站。但我收到错误登录失败:未知用户名或密码错误



这是我的代码。这有什么问题



  Dim  domain 作为 字符串 =   google.com 
Dim username As 字符串 = 用户名
Dim 密码作为 System.Security.SecureString
Dim plainPassword As String = < span class =code-string> password
对于 < span class =code-keyword>每个 c plainPa ssword.ToCharArray
password.AppendChar(c)
下一步 c
Process.Start( C:\Program Files \Internet Explorer \ xxxplore.exe https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/ ?tab%3Dwm& scc = 1& ltmpl = default& ltmplcache = 2,用户名,密码,域名)

解决方案

< blockquote>那个%3D应该在那里吗?

你是不是编码& tab参数值?

也许应该和& tab = wm而不是& tab =%3Dwm


I am creating code to open website in vb.net and passing the use name and password to that site. But I got error " Logon failure: unknown user name or bad password"

This is my code. What''s wrong in that

Dim domain As String = "google.com"
        Dim username As String = "Username"
        Dim password As New System.Security.SecureString
 Dim plainPassword As String = "password"
        For Each c In plainPassword.ToCharArray
            password.AppendChar(c)
        Next c
          Process.Start("C:\Program Files\Internet Explorer\iexplore.exe", "https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/?tab%3Dwm&scc=1&ltmpl=default&ltmplcache=2", username, password, domain)

解决方案

Should that %3D be there?
are you URLEncoding the &tab parameter value?
maybe that should be &tab=wm instead of &tab=%3Dwm


这篇关于登录失败:未知的用户名或密码错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆