Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Login failure: unknown user name or bad password

We are running Visual Studio 2012 and Team Foundation Server 2012. In the Team Explorer window, I am able to successfully connect to our TFS environment. However, when I select the Security link under Team Project or Team Project Collection, I receive a message "Team Foundation Server: Login Failure: unknown user name or bad password".

I have not found a log file or anything in any event viewer file that helps debug this problem.

  • Is there a log file I can search for that contains some 'hints' as to want the connection problem is?
  • where are your credentials stored on your locale machine that are used to connection team foundation?
like image 722
Steve Avatar asked Sep 24 '12 17:09

Steve


4 Answers

We realized that the root cause for this issue is that Visual Studio is trying to open a browser using the same credentials used to connect to TFS. If those credentials are not allowed to run processes on your machine (I suspect in your case it’s domain users on a different domain which is not trusted by the client domain) then opening the browser will fail. That explains why you can hit those URLs using a browser instance that is opened using your own credentials.This will be fixed in a future release of visual studio.

like image 106
Shady Youssef Samy Ibrahim Avatar answered Nov 03 '22 13:11

Shady Youssef Samy Ibrahim


In TFS 2012, the management interface for permissions and project settings has largely shifted to Team Web Access.

Clicking any of the following settings from Team Explorer 2012 will produce the "Logon failure: unknown user name or bad password" error:

•Team Project Collection > Security

•Team Project Collection > Group Membership

•Team Project > Security

•Team Project > Group Membership

•Team Project > Work Item Areas

•Team Project > Work Item Iterations

•Team Project > Project Alerts

like image 31
markdaisy Avatar answered Nov 03 '22 11:11

markdaisy


I have the same problem. To correct it (temporaly), you must run VS 2012 with this command:

C:\Windows\System32\runas.exe /netonly /user:{domain\loginname} "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"

Change {domain\loginname} by the domain and login name of your tfs domain account. A console will ask for your password and all works!

like image 3
ZeBobo5 Avatar answered Nov 03 '22 12:11

ZeBobo5


I also experienced the same issue with TFS. I found a solution for that. You have to remap your workspaces in your PC or Remote server. If you have any uncommitted changes in your projects, you have to keep backup, otherwise you will lost your changes.

Steps -

  • Go to Workspaces in Visual Studio

    File-> Source Control -> Advanced -> Workspaces

  • Remove the current workspaces.

  • Remap the projects again.

like image 1
Sudharshan Avatar answered Nov 03 '22 12:11

Sudharshan