【发布时间】:2019-11-22 06:06:02
【问题描述】:
我创建了一个使用 Windows 身份验证连接到 tfs 服务器的控制台应用程序。我已经在 azure web 作业中上传了这个应用程序,但是在执行它时显示身份验证错误。如何在 Azure Web 作业上使用我的 Windows 身份验证。我试过下面的代码,但它不起作用。
NetworkCredential credentials = new NetworkCredential("UserName", "PAssword","Domain");
TfsTeamProjectCollection tpc = new TfsTeamProjectCollection(new Uri(serverName), credentials);
tpc.Authenticate();
【问题讨论】:
-
你的 TFS 版本是多少?
-
嗨 Dharmesh Patel,您有机会实施我建议的解决方案吗?你能解决吗?如果我的回复有帮助或给出了正确的方向。感谢marking it as an answer,这也将帮助社区中的其他人。
标签: tfs windows-authentication azure-webjobs manual