0

When using workspace.GetLocalItemForServerItem() I am getting an exception

An unhandled exception of type 'Microsoft.TeamFoundation.VersionControl.Client.ItemNotMappedException' occurred in Microsoft.TeamFoundation.VersionControl.Client.dll

with inner exception

There is no working folder mapping for $/MyProject/MyProjectSubDir/teambuild/tfsbuild.proj. 

It works perfectly well on one machine but not on another.

Any ideas?

user1254382
  • 33
  • 1
  • 4

1 Answers1

0

This may happen if you forget to create a local workspace mapping with server folder. Please double check it and try again. enter image description here

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62
  • 1
    if you have the workspace and the map is correct? what else could be? – XtianGIS Jan 27 '17 at 18:04
  • @XtianGIS More ways to figure out the issue , please take a look at this similar question: http://stackoverflow.com/questions/18751959/exception-message-there-is-no-working-folder-mapping-for – PatrickLu-MSFT Jan 30 '17 at 02:01