2016-11-23 77 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一般的認證問題。 –