2
votes

So after coming back from vacation my build server don't want to run any builds anymore. It's just stuck on Waiting for an available agent / Waiting for an agent to be requested and if I cancel it I feel it get's stuck on Build Cancelling... since nothing more is happening after I cancel the build. The waiting message is still there but the build is not in the build queue though.

All the agents are green in the Agent Pool and the background service is running.

I am getting the following error in the event log:

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)

And after 14 Inner Exceptions with the same message on the 15th Inner Exception it says:

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)

I have installed the standalone installer for MVC 4 from http://www.asp.net/mvc/mvc4 but that did not help. Also think it's wierd that it's suddenly missing this assembly. I have also tried reconfiguring the agent.

1
Did you install the assembly into the GAC?Legends
What does this mean? I just ran the installer, but since it was already installed I just did a repair.stibay
I get "We are sorry, the page you requested cannot be found" when clicking on the stand alone installer link ???Legends
Verify if the assembly is in the GAC--> %windir%\assembly. If it is not there, you can install the assembly using gacutil /i YourAsssemblypath\System.web.mvc.dll. The exception message also says... or one of ot's dependencies. So it must not be necessary the mvc.dll.Legends
Hmm so it was not in the assembly folder and when i try running the gacutil I get this error: Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.18020 Copyright (c) Microsoft Corporation. All rights reserved. Failure adding assembly to the cache: The system cannot find the file specified.stibay

1 Answers

0
votes

Finnaly got this working again \o/

What I think fixed it was installing the ASP.NET MVC Security Update MS14-059 from this site: https://www.microsoft.com/en-us/download/details.aspx?id=44533

It's still no System.Web.Mvc assembly reference in the %windir%\assembly folder but after innstalling the fix and restarting the server the job agent queued the job right away. And I had restarted the server multiple times before that so it was definitely not because of the restart.