microsoft / azure-devops-dotnet-samples

.NET/C# samples for integrating with Azure DevOps Services and Azure DevOps Server
https://docs.microsoft.com/azure/devops/integrate
MIT License
522 stars 518 forks source link

GetDeploymentsAsync2 throws error #173

Open sasankjonna opened 6 years ago

sasankjonna commented 6 years ago

Here is my code

ReleaseHttpClient2 releaseClient2 = connection.GetClient(); List deployments = new List(); // Iterate (as needed) to get the full set of deployments int continuationToken = 0; bool parseResult; do { IPagedCollection releaseDeploymentsPage = releaseClient2.GetDeploymentsAsync2(project: project.Name, definitionId: releaseDefinition.Id, continuationToken: continuationToken).Result;

            deployments.AddRange(releaseDeploymentsPage);

The GetDeploymentsAsync2 throws the below error "API resource location b005ef73-cddc-448e-9ba2-5193bf36b19f is not registered on http://*******/tfs/****Collection."

Ours is an on Prem TFS 2015 update 3 environment .

Thoughts?

sasankjonna commented 6 years ago

is any one looking into these issues? Looks like the REST API http://****/tfs/****Collection/****/_apis/Release/deployments is also broken . It gives me 404 error.