View Single Post
  #1 (permalink)  
Old February 20th, 2012, 04:16 AM
sekar1484 sekar1484 is offline
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default TF31002: Unable to connect to this Team Foundation Server

Description :
Connecting TFS 2005 via .Net console application for pulling the project and users information. This console will be used by the different users as standalone app for pulling out the information from thier machine.

Problem :
When the user executing the console with the proper input details as mentioned below
Eg : <tfs server : port> <username> <pwd> <domain>
getting the below error message
TF31002: Unable to connect to this Team Foundation Server
Note :
1.The user as got ADMIN rights and can connect to the TFS for different process (check in , check out etc...)
2. This console application is working fine for TFS installed in single tier architec server (TFS app server ,Database server in same server), problem occurs for the TFS installed in two tier architec sever (TFS app server ,Database server in different server )

Error Occurs in below line of code :
System.Net.NetworkCredential credential = new System.Net.NetworkCredential(UserName, Password, Domain);
TeamFoundationServer server = new TeamFoundationServer(serverUri, credential);
server.Authenticate();