May 5, 2010

TFS: TF30063: You are not authorized to access <server>

Problem:
When trying to work with TFS using the command line tool tf.exe on the TFS server, all commands end up with error: TF30063: You are not authorized to access <server>, <server> being the address of the TFS server you specified as tf.exe /server parameter, such as

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>tf status /server:http:
//tfs01.mydomain.com:8080 /workspace:MyWorkspace /user:mydomain\myusername

Solution:
Instead of using DNS registered URL of the TFS server, use full computer name. So in my case command that worked was:

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>tf status /server:http:
//ws000123.eu.mydomain.com:8080 /workspace:MyWorkspace /user:mydomain\myusername

6 comments:

  1. Thanks so much, It helped a lot.

    ReplyDelete
  2. Reaffirmed! Thanks!

    ReplyDelete
  3. Wow... I've been struggling with this for a few hours today. Trying to run data-driven Coded UI tests (where DataSource is parameters in a testcase) from MTM and Build Definitions, running into this error, even though those tests would run fine from Visual Studio. Changed the hostname in the DataSource from our DNS alias to the FQDN of the host, and blamo, it worked. Thanks!

    ReplyDelete
  4. You, my man, are a lifesaver!

    ReplyDelete
  5. Thx for this solution, it's very useful.
    Wish y the best!

    Regards
    Toby, due diligence data room

    ReplyDelete