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 .
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;
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?