GetService throws an error: “Could not find a part of the path 'E:\TFSWorkItemTrackingCache\v11”
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? Any help would be appreciated.
Found the problem. Someone added this to the web.config add key="WorkItemTrackingCacheRoot" value="E:\TFSWorkItemTrackingCache"