I have define a topology where in TFS server and the TFS build services(Controller and the Agent) are defined in different machines, to test this topology I have created a sample Asp.net web application and used the defaultTemplate.xaml to define the build definition. However every time I run the build I get this error:
'Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo+TfUndoCore.RunCommand(Microsoft.TeamFoundation.Build.Workflow.Activities.VersionControlScope, Microsoft.TeamFoundation.VersionControl.Client.Workspace, System.String, System.String)' to access method 'Microsoft.TeamFoundation.VersionControl.Client.Workspace.Undo(Microsoft.TeamFoundation.VersionControl.Client.ItemSpec[], Boolean, Boolean, System.String[])' failed.
I have tried deleting all the workspaces that are present in the build agent belonging to the administrator account, but is of no avail, I have also made sure that the user running the build has appropriate permissions.