Reputation: 2254
I'm looking at this MSDN page but the code breaks on the line
WorkItemType workItemType = teamProject.WorkItemTypes["User Story"];
with the error
An unhandled exception of type 'Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemTypeDeniedOrNotExistException' occurred in Microsoft.TeamFoundation.WorkItemTracking.Client.dll
Additional information: TF201077: The work item type User Story cannot be found. It may have been renamed or destroyed.
Where/what exactly should "User Story" be?
Do I need to import an XML document to my solution? Is the TFS server I'm connecting to not configured right for the way I'm trying to access it?
Upvotes: 0
Views: 844
Reputation: 4787
Which Template are you using? on your TFS Team Project.
As stated in that web page you need to be using
For example, you might create a user story as defined in MSF for Agile software development for Visual Studio ALM.
Upvotes: 1