I\'m trying to build an ASP.NET page that adds a work item in TFS.
I have enabled impersonation and Windows authentication:
Based on this article, it's worth a shot to add EnsureAuthenticated();
TfsTeamProjectCollection prjCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("xxx"));
prjCollection.EnsureAuthenticated();
WorkItemStore store = prjCollection.GetService();
I haven't ever tried this, so I can only hope it 'll work.