I'm trying to allow users to do various tasks using the TFS SDK. I have created a simple .NET web application to do this, which runs perfectly when I'm running locally. I can connect to the TFS host on our domain as myself using my AD credentials.
My issue is when I publish the web application to another server on the domain, I lose the authentication I had when I was running locally. I can't connect to TFS as the current logged-in user.
I have turned on Windows Authentication on the web application, hoping to utilize Kerberos, but I still get the following error:
[TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access http://<serverName>:8080/tfs/<projectCollection>.]
I am not explicitly passing any credentials to the web app because I want the user that is using the app to automatically log in using their AD credentials. How is this possible, if at all? Are there IIS and/or ASP.NET settings that I need to configure to get this to work?