IIS7 Impersonation doesn't work to access TFS repository
I'm trying to build an ASP.NET page that adds a work item in TFS. I have enabled impersonation and Windows authentication: <authentication mode="Windows" /> <identity impersonate="true" password="" userName="" /> <customErrors mode="Off" /> In the page, I access TFS and try to add a work item: TfsTeamProjectCollection prjCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("xxx")); WorkItemStore store = prjCollection.GetService<WorkItemStore>(); ... However, it only works when I select SpecificUser in ASP.NET Impersonation and store the credentials. It doesn't work