p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional Team Foundation Server 2010 (http://p2p.wrox.com/forumdisplay.php?f=629)
-   -   TF31002: Unable to connect to this Team Foundation Server (http://p2p.wrox.com/showthread.php?t=86729)

sekar1484 February 20th, 2012 04:16 AM

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();

sekar1484 February 27th, 2012 03:52 AM

TF31002: Unable to connect to this Team Foundation Server
 
Solution :
The problem seems to be the TFS URL, in TFS 2005 we should give the tfs link without the value '/tfs' at the end of URL as mentioned below

Old URL which gave us the issue :

http://tfs-xxxxxxxxx-xxx.com:8080/ tfs

New URL which worked :
http://tfs-xxxxxxxxx-xxx.com:8080/
[:)]


All times are GMT -4. The time now is 03:06 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.