【发布时间】:2012-12-13 21:41:31
【问题描述】:
可能重复:
authentication failed while connecting to tfs using tfs api
我遇到了一个奇怪的问题。我想以编程方式使用 tfs api 连接 tfs 服务器。 即使在提供适当的 authentcaion crdiatials 之后它也会失败。但是如果我通过在浏览器中键入 tfs 服务器名称来手动执行它,它就会连接。
代码:
TeamFoundationServer tfs =
new TeamFoundationServer(new Uri("http://xx.xx.xx.xx:8080/tfs"),
new NetworkCredential(@"user", "pass", "domain"));
tfs.EnsureAuthenticated()
请提出建议。
【问题讨论】:
-
我真的希望这不是您的实际 ip 和身份验证详细信息...如果是这样,如果我是您,我会编辑您的问题!