TFS Related: Why is it required to login to VPN ev

2019-09-21 02:51发布

问题:

On getting latest for a branch from TFS, I got an error

"TF30063: You are not authorized to access Microsoft-IIS/8.5."

only for a particular file in a folder of one of the projects. Searching for solution online I came across this link which suggested to log out of some wrong account and log back in.

However I have only one account which is my office domain account and I cannot use any other account to login to TFS. On checking with some colleagues they just asked me to login to VPN and try. I basically use VPN to connect to office network when I am working from home. Though I was already in office I was suggested to login to office network and try to get the latest for that file which worked.

My query is when I was not connected to VPN and while getting latest from TFS, why the error

"TF30063: You are not authorized to access Microsoft-IIS/8.5."

not occur on other files in that same folder whereas it occurred for only one file and how come logging to to VPN resolved it?

Any thoughts?

回答1:

This seems to be a cache issue. First,try to remove your office account info which stored in Credential ManagerControl Panel-All Control Panel Items-Credential Manager-Windows Manager

Also clear TFS and VS cache. Then reconnect to TFS in Visual Studio and do the get latest for that particular file.


Update

  1. Checkout that particular file and check in an old version of that file.
  2. Do the "take latest" action.

This may not generate the error again.



标签: tfs vpn