I'm trying to connect to tfs 2010 server using code below but got an exception "The request failed with HTTP status 400: Bad Request.". Am I missing something, please advise.
/// Connects to Team Foundation Server.
public bool Connect()
_server = new TfsTeamProjectCollection(new Uri(ServerURL), new UICredentialsProvider());
_versionControl = (VersionControlServer)_server.GetService(typeof(VersionControlServer));
What Url are you connecting with it shuld be in the follwoing format http://Server:8080/tfs/CollectionName
If you simply want to connect as the current user, you dont need an UICredentialProvider.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?