title: TfsTeamProjectCollectionFactory.GetTeamProjectCollection failing despite available TFS server
body: <p>So, I have a TFS server at <a href="http://mytfsserver:8080" rel="nofollow">http://mytfsserver:8080</a>. I'm connected to it fine from visual studio doing all the usual TFSy things without any issue at all.</p>
  
  <p>I'm trying to connect from code though - I do the following:</p>
  
  <pre><code>tfs =  TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("http://mytfsserver:8080"));
  tfs.EnsureAuthenticated();
  </code></pre>
  
  <p>But I get a <code>TeamFoundationServiceUnavailableException</code>.</p>
  
  <p>I'm not connecting to my server in any funny ways, so what is different about what I'm doing to what VS does when it connects?</p>