CI构建不再开始了

时间:2014-09-18 14:11:34

标签: build credentials

我在检查CI版本的更改时遇到以下错误:

TF215097: An error occurred while initializing a build for build definition \[builddefinitionofourcompany].: 
Exception Message: Derived method 'get_CredentialType' in type 'Microsoft.VisualStudio.Services.Client.VssFederatedCredential' from assembly 'Microsoft.VisualStudio.Services.Client, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' cannot reduce access. (type TypeLoadException)
Exception Stack Trace:    at Microsoft.TeamFoundation.Client.TfsClientCredentialsConverter.ConvertToVssCredentials(TfsClientCredentials clientCredentials, Uri serverUri)
   at Microsoft.TeamFoundation.Client.TfsConnection.CreateVssConnection()
   at Microsoft.TeamFoundation.Client.TfsConnection.GetClientT
   at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFile(TfsTeamProjectCollection projectCollection, String itemPath, Stream outputStream)
   at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFileAsString(TfsTeamProjectCollection projectCollection, String itemPath)
   at Microsoft.TeamFoundation.Build.Client.ProcessTemplate.Download(String sourceGetVersion)
   at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity activity, IBuildDetail build, WorkflowRequest request, IDictionary`2 dataContext)
   at Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest request, WorkflowManagerActivity activity, BuildWorkflowInstance& workflowInstance, Exception& error, Boolean& syncLockTaken)

这个凭据错误是什么?谷歌没有给出任何结果。

谢谢,

1 个答案:

答案 0 :(得分:0)

我刚遇到这个问题。我转到TFS Build服务器,打开Team Foundation Server管理控制台,"重新启动"最顶层的BUILDER,然后它解决了。