GetService throws an error: "Could not find a part of the path 'E:\TFSWorkItemTrackingCache\v11"

StackOverflow https://stackoverflow.com/questions/16024945

  •  04-04-2022
  •  | 
  •  

Question

I am trying to return the WorkItemStore from a TfsTeamProjectCollection instance.

The code is straight forward:

TfsTeamProjectCollection tfs = new TfsTeamProjectCollection(new Uri(this.Path), new NetworkCredential(this.UserName, pwd, this.Domain));

tfs.Authenticate();

WorkItemStore store = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));

but that line errors out when calling GetService. The error passed back reads:

"Could not find a part of the path 'E:\TFSWorkItemTrackingCache\v11"

There is no such path on the server where the TFS instance resides, and even adding the folder makes no difference.

What is going on here and how can I get rid of this error?

Was it helpful?

Solution

Found the problem. Someone added this to the web.config add key="WorkItemTrackingCacheRoot" value="E:\TFSWorkItemTrackingCache"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top