2016-11-23 47 views
3

我在SQL Express上安装了独立的单服务器TFS 2017 RTM。它不在任何领域,但在我的笔记本电脑上。已经提出了我自己的用法(为了学习)。将其设置为在SSL的自签名证书上运行。关于为TFS 2017安装构建代理的问题

想在同一台机器上设置vNext构建代理。我记得在我的大脑中,构建机器应该不在TFS应用层,以减少表面攻击。那么我现在并不在乎表面攻击。但是,我需要一个工作的TFS以及构建设置。

在输入URL(https URL)后进行配置时,系统会提示输入验证类型。我输入了谈判。输入凭据后,我得到以下错误。

TF400813: Resource not available for anonymous access. Client authentication required. 

在使用集成的身份验证类型,我得到下面的错误。

An error occurred while sending the request. 
Failed to connect. Try again or ctrl-c to quit 

当我使用http站点的URL我得到两个身份验证类型错误。

Connecting to server ... 
Found 
Failed to connect. Try again or ctrl-c to quit 

我可以ping通我的URL。

下面是来自_diag文件夹的错误日志。

[2016-11-23 19:53:40Z INFO CredentialManager] Creating type Integrated 
[2016-11-23 19:53:40Z INFO CredentialManager] Creating credential type: Integrated 
[2016-11-23 19:53:40Z INFO IntegratedCredential] GetVssCredentials 
[2016-11-23 19:53:40Z INFO ConfigurationManager] cred retrieved 
[2016-11-23 19:53:40Z INFO Terminal] WRITE LINE: Connecting to server ... 
[2016-11-23 19:53:41Z INFO CommandSettings] Flag 'unattended': 'False' 
[2016-11-23 19:53:41Z ERR Terminal] WRITE ERROR (exception): 
[2016-11-23 19:53:41Z ERR Terminal] Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Found 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response) 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__45.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__42`1.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() 
    at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.<GetConnectionDataAsync>d__6.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() 
    at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.<ConnectAsync>d__41.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Microsoft.VisualStudio.Services.Agent.AgentServer.<ConnectAsync>d__3.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.<TestConnectAsync>d__10.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.<ConfigureAsync>d__7.MoveNext() 
+0

你可以通过网络访问访问TFS吗? –

+0

是的 - 我可以通过网络访问它。 –

回答

0

尝试禁用匿名身份验证,并启用Windows身份验证您的TFS。

由于您为自己的用途设置了TFS,因此可以考虑使用Visual Studio Team Service而不是内部部署的TFS。 5个用户可免费使用VSTS。

+0

是的,我也有VSTS。试图使它也适用于本地安装。 我在身份验证中看不到Windows身份验证,我可能需要在IIS中解锁它。 将尝试选项,并让你知道。 –

+0

让我们知道你的测试结果。 –

+0

当然。这是在我的笔记本电脑上。所以会在几天内完成并让你知道。 –

0

尝试使用PAT作为认证类型,并从配置文件菜单中的安全页面获取个人访问令牌。使用所选择的范围 - 代理池(阅读,管理)

http://go.microsoft.com/fwlink/?LinkID=825113

个人访问令牌用于注册代理。最后一步是提供代理服务的凭证。

+0

我会试试这个更新 –

+0

我试过这个,我得到下面的错误.. System.Net.Http.HttpRequestException:发送请求时发生错误。 ---> System.Net.Http.WinHttpException:参数不正确 at System.Net.Http.WinHttpAuthHelper.SetWinHttpCredential(SafeWinHttpHandle requestHandle,ICredentials credentials,Uri uri,UInt32 authScheme,UInt32 authTarget) at System.Net.Http .WinHttpAuthHelper.CheckResponseForAuthentication(WinHttpRequestState状态,UInt32&proxyAuthScheme,UInt32&serverAuthScheme) at System.Net.Http.WinHttpHandler。 d__101.MoveNext() –

+0

在配置代理程序的哪一步你会得到这个错误?看起来像TFS一般的认证问题。 –