Search code examples
visual-studiotfsvisual-sourcesafe

TFS Annotation Error


I've recently had a TFS 2015 to 2017 upgrade, and now I have this error whenever I try to do a Source Control->Annotate from the Visual Studio Solution Explorer:

Annotation Error

m_itempath or m_versionControl not set

If I try to run the annotate from the file editor, I get the different error:

Annotation Error

Unable to determine the workspace for the file C:\...

Using Visual Studio Enterprise 2015. This is a Server workspace, and all other operations seem to work as normal.


Solution

  • Most of the solutions in

    failed to work for me.

    This did work:

    1. Go to Source Control Explorer
    2. Right-click on the mapped folder
    3. Select 'Advanced->Remove Mapping' and follow prompts. Ignore conflict screens.
    4. Select 'Advanced->Map to Local Folder' and map back to the existing folder.
    5. Resolve any outstanding conflicts.

    After this, the annotations worked again.