在VS2012 Team Explorer中若遇到開啟Web存取時發生登入失敗錯誤如何解決?

  • 982
  • 0

摘要:在VS2012 Team Explorer中若遇到開啟Web存取時發生登入失敗錯誤如何解決?

 

若是在在VS2012 Team Explorer開啟Web存取 發生如下錯誤:

這是因為在Team explorer 2012後 很多設定介面都已經直接使用Web頁面直接設定

並沒有像Team explorer 2010時另外設計Win Form介面

 

如果本機電腦目前的OS登入帳號為非TFS 2012的網域帳號(例如:本機OS帳號)

但是卻使用TFS 2012的網域帳號登入Team explorer 2012

此時開啟Web存取時 Team explorer 2012 會直接以OS本機帳號登入TFS 2012

如此會直接造成失敗 並不會出現帳號密碼輸入視窗

 

這個問題的work around 是利用runas 命令的 /netonly 選項啟動VS 2012

如下例:

runas /netonly /user: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"

請注意 /netonly選項無法在windows 檔案總管中啟用 必須使用命令列啟動

以這個方式啟動VS2012 Team explorer在開啟web存取時會以指定的網域帳號登入

即可避免這個問題

 

參考網址:

http://superuser.com/questions/473329/visual-studio-2012-cannot-access-team-explorer-security-group-membership-section

http://stackoverflow.com/questions/12569922/login-failure-unknown-user-name-or-bad-password

 

風來疏竹,風過而竹不留聲;雁度寒潭,雁去而潭不留影。故君子事來而心始現,事去而心隨空。