TF30063: You are not authorized to access https://dev.azure.com/

Ruhong Cai 1 Reputation point
2022-03-17T15:51:14.777+00:00

Hi,

We fail to connect to TFS server https://dev.azure.com/MyProject in .net (VS 2019.16.11)

Got

TF30063: You are not authorized to access https://dev.azure.com/

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 com.microsoft.tfs.sdk-14.136.0.jar, could connect to TFS server and run what we need.

Thanks for help!

Ruhong

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