I\'m using the TFS API to connect to Team Foundation Server. In the Server URI , I\'m passing the hostname of the server. Me getting a Bad URI format error.
teamFoundati
I think you need the URL of the Team Project Collection, not just the server, probably:
http://server:8080/tfs/collection
There is an example of connecting on MSDN but it iterates through all the project collections on the TFS instance, but with that example code you could examine TfsTeamProjectCollection.Uri to confirm the correct URI to use.