This is an absolute beginner question in TFS SDK:
I am trying to connect to TFS server using the code
TeamFoundationServer teamFoundationServer =
TeamFoundationServerFactory.GetServer(X);
X is server name
I am getting an error like
TF249051: No URL can be found that corresponds to the following server name: X
Verify that the server name is correct.
However I am able to connect to the TFS server from VS2010 using Team->Connect to TFserver menu option