title: TFS Build fails but 0 error(s), 0 warning(s)
body: <p>I created a CI build for one of our solutions that builds fine on our local machines, but fails all the time on TFS.</p>
  
  <p>As mentioned:</p>
  
  <ul>
  <li>Builds fine on local machine - even after clean/rebuild. All other
  dev machines as well.</li>
  <li>I'm using the default build template. Actually this was a clone from another build that works just fine.</li>
  <li>Logging (even on verbosity 'diagnostic' shows no occurrences of 'error' or 'failed' other than the message about the zipping the logs.</li>
  </ul>
  
  <p>TFS Version is 2013. The build machine was updated to VS2012v4. I'm not sure about TFS Build service version, but I'm having it updated to latest version next week. (Could that be it?)</p>
  
  <p>Any ideas?</p>
  
  <p>Googling resulted in: </p>
  
  <ul>
  <li>Upgrading VS on build server  </li>
  <li>Upgrading TFS build service on build
  server (will be done monday by ops)</li>
  </ul>
  
  <p>(<a href="http://social.msdn.microsoft.com/Forums/vstudio/en-US/c0952875-10e8-4ae6-82a4-49af9db4a806/code-coverage-results-pending?forum=tfsbuild" rel="nofollow noreferrer">http://social.msdn.microsoft.com/Forums/vstudio/en-US/c0952875-10e8-4ae6-82a4-49af9db4a806/code-coverage-results-pending?forum=tfsbuild</a>)</p>
  
  <p><img src="https://i.stack.imgur.com/3tsDi.png" alt="TFS build error message"></p>
  
  <p>Full error message here:</p>
  
  <pre><code>Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException)
  Exception Stack Trace:    at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
     at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
     at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
   No zip file of logs was created because the archive operation failed: System.AggregateException: One or more errors occurred. ---&gt; System.AggregateException: One or more errors occurred. ---&gt; Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path '', line 1, position 1.
     at Newtonsoft.Json.Linq.JArray.Load(JsonReader reader)
     at Newtonsoft.Json.Linq.JArray.Parse(String json)
     at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.ArchiveLogsInvoker.&lt;ArchiveLogs&gt;d__5.MoveNext()
     --- End of inner exception stack trace ---
     --- End of inner exception stack trace ---
     at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.ArchiveLogsInvoker.End(IAsyncResult result)
     at Microsoft.TeamFoundation.Build.Hosting.OperationInvokerPool.EndInvoke(IAsyncResult result)
  ---&gt; (Inner Exception #0) System.AggregateException: One or more errors occurred. ---&gt; Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path '', line 1, position 1.
     at Newtonsoft.Json.Linq.JArray.Load(JsonReader reader)
     at Newtonsoft.Json.Linq.JArray.Parse(String json)
     at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.ArchiveLogsInvoker.&lt;ArchiveLogs&gt;d__5.MoveNext()
     --- End of inner exception stack trace ---
  ---&gt; (Inner Exception #0) Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path '', line 1, position 1.
     at Newtonsoft.Json.Linq.JArray.Load(JsonReader reader)
     at Newtonsoft.Json.Linq.JArray.Parse(String json)
     at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.ArchiveLogsInvoker.&lt;ArchiveLogs&gt;d__5.MoveNext()&lt;---
  &lt;---
  </code></pre>