c# - How to connect to TFS Project without having access to the TFS Team Project Collection? -



c# - How to connect to TFS Project without having access to the TFS Team Project Collection? -

i have access particular tfs project on server. want access project programmatically tfs api. see no way of accessing project directly, instead have go through tfsteamprojectcollection. however, when effort authenticate tfsteamprojectcollection, denied permissions. when phone call authenticate() method when receive error:

an unhandled exception of type 'microsoft.teamfoundation.teamfoundationserviceunavailableexception' occurred in microsoft.teamfoundation.client.dll additional information: http code 407: proxy authentication required

here code:

const string destprojectname = "test_dest"; var desturi = new uri("https://mytfs.server.com:####/tfs/myprojectcollection"); var destbasiccreds = new basicauthcredential(new networkcredential("domain\username", "password")); var destcreds = new tfsclientcredentials(destbasiccreds) { allowinteractive = false }; var desttpc = new tfsteamprojectcollection(desturi, destcreds); desttpc.authenticate();

i have tried both basicauthcredential , windowscredential, , same error. there else should trying?

c# .net authentication tfs tfs-sdk

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -