I've a .NET application, that connects to a TFS server and plays a little bit with the work items. The application gets all its parameters like server, user, password etc. via command line parameters. This works well on all tested client windows OS (Win7, Win8). But running the command line on a Windows Server 2008 R2 a popup is shown, where the user has to provide his credentials.
Why is this happening only on the server OS? Are there any OS settings, to prevent the dialog (since the tool should be included in an build machine)?
Here is the code:
string completeURL = server + "/" + collection;
Uri uri= new Uri(completeURL);
var tpc = new TfsTeamProjectCollection(uri, new System.Net.NetworkCredential(user, passwd));
WorkItemStore _workItemStore = new WorkItemStore(tpc);