服务器TFS错误拒绝

Scu*_*tle 6 tfs

我正在构建一个应用程序,但收到错误.有人可以帮我理解如何解决这个问题吗?

异常消息:请求被服务器拒绝.技术信息:HTTP代码400:错误请求(类型TeamFoundationServerInvalidRequestException)异常堆栈跟踪:
Microsoft.TeamFoundation.Client上的Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.ReadResponse(HttpWebResponse webResponse,WebException webException)at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.IsAuthenticationChallenge(TfsMessage requestMessage,HttpWebResponse webResponse,WebException webException,TfsMessage&responseMessage) Microsoft.TeamFoundation上的Microsoft.TeamFoundation.Client.Channels.TfsHttpRetryChannel.Request(TfsMessage消息,TimeSpan超时)中的Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage消息,TimeSpan超时)中的.Channels.TfsHttpWebRequest.SendRequest() .Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation操作,Object []参数,TimeSpan超时,Object []和输出)
在Microsoft.TeamFoundation.TestImpact.Client.TestImpactServer.Microsoft.TeamFoundation.TestImpact.Client.ITestImpactServer.PublishBuildChanges(URI buildUri,CodeChange []的变化)在Microsoft.TeamFoundation.TestImpact.BuildIntegration.BuildActivities.GetImpactedTests.Execute(CodeActivityContext上下文)在System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,BookmarkManager bookmarkManager,Location resultLocation)的System.Activities.CodeActivity.InternalExecute(ActivityInstance实例,ActivityExecutor executor,BookmarkManager bookmarkManager)内部异常详细信息:异常消息:返回的远程服务器错误:(400)错误请求.(类型WebException)状态:ProtocolErrorResponse状态代码:BadRequestResponse状态消息:
在System.Net.HttpWebRequest.GetResponse()

Jaa*_*ans 23

我刚刚与TFS2013和我们的CI构建遇到了同样的问题.

似乎错误发生在Test Impact分析器以某种方式失败.

您可以更改构建配置,以便不分析测试影响.

这取决于您使用的是哪个构建模板,但对于Scrum 2013,您可以在以下位置找到它:Process> Test> Advanced> Analyze Test Impact- 将其设置为false.

  • 这只是一种解决方法,而不是真正的解决方案...... :( (4认同)
  • 对我来说,它可以关闭它,运行构建然后再打开它. (3认同)