none
Microsoft.TeamFoundation.WorkItemTracking.Client.VerbatimMessageException was unhandled RRS feed

  • Question

  • I have code that updates the TFS Global List, so when a new customer is added to our customer tracking software, it updates the Client Name list.

    The code is able to get the GlobalList and update the xml. However, when I call store.ImportGlobalLists(globalList.InnerXml) I get an exception. The store variable is a WorkItemStore The only relevant information I could find on this exception is here, which doesn't give much additional information. The exception gives additional information:

    You cannot modify the definition of a work item tracking object with your version of command-line tools as they are not compatible with the Web services for Team Foundation Server. Contact your system administrator to determine how to upgrade your installation of Team Explorer to a version compatible with Team Foundation Server.

    I am using:

    • Visual Studio 2015 Version 14.0.25431.03 Update 3
    • .NET Version 4 (not using NuGets for TFS Communication)
    • TFS Version 2015

    I get the same exception when I try to update from the command line with witadmin. I can export the global list, but cannot import it. I assume that I need to update something somewhere, but I'm not sure what needs to be updated, or what version I should update to.

    The full exception is below:

    Microsoft.TeamFoundation.WorkItemTracking.Client.VerbatimMessageException was unhandled
      ErrorId=0
      HResult=-2146232832
      IsRemoteException=True
      LogException=False
      Message=TF223006: You cannot modify the definition of a work item tracking object with your version of command-line tools as they are not compatible with the Web services for Team Foundation Server. Contact your system administrator to determine how to upgrade your installation of Team Explorer to a version compatible with Team Foundation Server.
      Source=Microsoft.TeamFoundation.WorkItemTracking.Client
      StackTrace:
           at Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionClass.Submit(ActionType action, MetadataProvider mdp, Int32 projectId, WITImporter importer)
           at Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionClass.ImportGlobalListsInternal(XmlElement listsElement)
           at Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionClass.ImportGlobalLists(String lists)
           at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.ImportGlobalLists(String lists)
           ...
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()
      InnerException: 
           Actor=/tfs/DefaultCollection/WorkItemTracking/v4.0/ClientService.asmx
           HResult=-2146233087
           Lang=""
           Message=TF223006: You cannot modify the definition of a work item tracking object with your version of command-line tools as they are not compatible with the Web services for Team Foundation Server. Contact your system administrator to determine how to upgrade your installation of Team Explorer to a version compatible with Team Foundation Server.
           Node=/tfs/DefaultCollection/WorkItemTracking/v4.0/ClientService.asmx
           Role=""
           Source=Microsoft.TeamFoundation.WorkItemTracking.Proxy
           StackTrace:
                at Microsoft.TeamFoundation.WorkItemTracking.Proxy.RetryHandler.HandleSoapException(SoapException se)
                at Microsoft.TeamFoundation.WorkItemTracking.Proxy.WorkItemServer.Update(String requestId, XmlElement package, XmlElement& result, MetadataTableHaveEntry[] metadataHave, String& dbStamp, IMetadataRowSets& metadata)
                at CProdStudioBackendChannel.Update(CProdStudioBackendChannel* , Boolean fBatchSave, UInt16* bstrXMLUpdateData, UInt16** pbstrXMLUpdateData, WorkItemServer clientService)
           InnerException: 
    Friday, June 21, 2019 8:35 PM

All replies

  • Hi,

    see the following link,check Microsoft.TeamFoundation.WorkItemTracking.Client assembly version

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/77c6d30a-51f5-45ad-8678-7878e4ba1134/tf223006-you-cannot-modify-the-definition-of-a-work-item-tracking-object-with-your-version-of?forum=tfsgeneral

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, June 24, 2019 1:44 AM
  • Thank you. Updating to Microsoft.AspNet.WebApi.Client v seems to have resolved that error. I had to update the solution to .NET 4.5 and a few other NuGets to get the solution to build without errors.

    I'm running into a few other issues, but hopefully I will be able to resolve those on my own.
    • Edited by DarthTim Wednesday, June 26, 2019 6:04 PM
    Wednesday, June 26, 2019 5:52 PM
  • Hi,

    If you have anything else about this issue, please feel free to contact me.

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, June 27, 2019 2:12 AM