【问题标题】:TFS 2015 - Waiting for an agent to be requestedTFS 2015 - 等待代理被请求
【发布时间】:2016-12-08 20:07:37
【问题描述】:

所以在度假回来后,我的构建服务器不想再运行任何构建。它只是停留在 Waiting for an available agent / Waiting for an agent to be requesting,如果我取消它,我觉得它会停留在 Build Cancelling... 因为仅此而已在我取消构建后发生。等待消息仍然存在,但构建不在构建队列中。

代理池中的所有代理都是绿色的,后台服务正在运行。

我在事件日志中收到以下错误:

Detailed Message: There was an error during job agent execution. The operation will be retried. Similar errors in the next five minutes may not be logged.
Exception Message: A previous call to WebApiConfiguration.Initialize failed. See inner exception for details. (type WebApiInitializationPreviouslyFailedException)

在 14 次内部异常之后,在第 15 次内部异常中显示相同的消息:

Exception Message: Could not load file or assembly 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (type FileNotFoundException)

我已经从http://www.asp.net/mvc/mvc4 安装了 MVC 4 的独立安装程序,但这并没有帮助。还认为它突然缺少这个程序集很奇怪。我也尝试过重新配置代理。

【问题讨论】:

  • 您是否将程序集安装到 GAC 中?
  • 这是什么意思?我刚刚运行了安装程序,但由于它已经安装,所以我只是进行了修复。
  • 单击独立安装程序链接时,我收到“很抱歉,找不到您请求的页面”???
  • 验证程序集是否在 GAC 中--> %windir%\assembly。如果它不存在,您可以使用gacutil /i YourAsssemblypath\System.web.mvc.dll 安装程序集。异常消息还说...或 ot 的依赖项之一。所以mvc.dll一定不是必需的。
  • 嗯,所以它不在程序集文件夹中,当我尝试运行 gacutil 时出现此错误:Microsoft (R) .NET Global Assembly Cache Utility。版本 4.0.30319.18020 版权所有 (c) Microsoft Corporation。版权所有。将程序集添加到缓存失败:系统找不到指定的文件。

标签: asp.net-mvc-4 tfs tfs-2015


【解决方案1】:

Finnaly 又让它工作了 \o/

我认为解决的问题是从该站点安装 ASP.NET MVC 安全更新 MS14-059:https://www.microsoft.com/en-us/download/details.aspx?id=44533

%windir%\assembly 文件夹中仍然没有 System.Web.Mvc 程序集引用,但在安装修复程序并重新启动服务器后,作业代理立即将作业排入队列。而且我之前已经重启过多次服务器,所以肯定不是重启的原因。

【讨论】:

  • 您可以将其标记为答案,以便其他有类似问题的人可以看到。
  • 是的,本来打算这样做的,但不得不等待 2 天,然后忘记了 :)
猜你喜欢
  • 1970-01-01
  • 2017-08-24
  • 1970-01-01
  • 2016-11-30
  • 2017-05-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多