【发布时间】: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