TF30063: You are not authorized to access

Ruhong Cai 1 Reputation point


We fail to connect to TFS server in .net (VS 2019.16.11)


TF30063: You are not authorized to access

ICredentials networkCredentials = new NetworkCredential("login", "password/personal token");
WindowsCredential windowsCredentials = new WindowsCredential(networkCredentials);
TfsClientCredentials credentials = new TfsClientCredentials();
TfsConfigurationServer configurationServer = new TfsConfigurationServer(serverUri, credentials);
configurationServer.EnsureAuthenticated(); ------ Got the exception here

The same login/personal token works fine in java, could connect to TFS server and run what we need.

Thanks for help!


Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,410 questions
{count} votes