none
Exception getting TFS WorkItemStore RRS feed

  • Question

  • I'm working on a project that needs to access TFS.  I'm using Windows auth with impersonation turned on.  I have verified that the correct user account is being used.  However, call to get the WorkItemStore below results in an exception being thrown.  Any thoughts?

     

    using (HttpContextImpersonator impersonator = HttpContextImpersonator.Begin(System.Security.Principal.WindowsIdentity.GetCurrent()))

    {

    using (TfsTeamProjectCollection projectCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(tfsUri))

    {

    WorkItemStore workItemStore = projectCollection.GetService<WorkItemStore>();

     

    Exception text = Error HRESULT E_FAIL has been returned from a call to a COM component.

     

    Thanks in advance

    Thursday, April 11, 2013 4:02 AM

All replies