TF400898:发生内部错误

时间:2017-04-22 14:44:14

标签: visual-studio tfs visual-studio-2017

我在本地PC上安装了Visual Studio 2017社区和Team foundation server 2017。一切顺利但我无法创建第一个项目。

--begin Exception entry---
Time: 2017-04-22T21:25:57
Module: Engine
Event Description: TF30162: Task "BuildTask" from Group "Build" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: TF400898: An Internal Error Occurred. Activity Id: f0024553-93bb-4320-812f-e12aa9e0f70a.
Exception Details: 
Stack Trace:
   at Microsoft.VisualStudio.TeamFoundation.Build.ProjectComponentCreator.ExecuteInternal(ProjectCreationContext context, XmlNode taskXml, Boolean validationOnly)
   at Microsoft.VisualStudio.TeamFoundation.Build.ProjectComponentCreator.Execute(ProjectCreationContext context, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.TaskExecutor.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.RunTask(Object taskObj)
--   Inner Exception   --
Exception Message: TF400898: An Internal Error Occurred. Activity Id: f0024553-93bb-4320-812f-e12aa9e0f70a. (type BuildServerException)
Exception Stack Trace:    at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.HandleReply(TfsClientOperation operation, TfsMessage message, Object[]& outputs)
   at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs)
   at Microsoft.TeamFoundation.Build.Client.BuildWebService4.CreateTeamProjectComponents(Uri projectUri, IEnumerable`1 permissions)
   at Microsoft.TeamFoundation.Build.Client.BuildServer.CreateTeamProjectComponents(Uri projectUri, IEnumerable`1 permissions)
   at Microsoft.VisualStudio.TeamFoundation.Build.ProjectComponentCreator.ExecuteInternal(ProjectCreationContext context, XmlNode taskXml, Boolean validationOnly)

Inner Exception Details:

Exception Message: TF400898: An Internal Error Occurred. Activity Id: f0024553-93bb-4320-812f-e12aa9e0f70a. (type SoapException)SoapException Details: <detail xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ExceptionMessage="The file exists.&#xD;&#xA;" BaseExceptionName="System.IO.IOException" />
Exception Stack Trace: 

和事件日志:

 Detailed Message: TF30065: An unhandled exception occurred.

Web Request Details
    Url: http://server:8888/tfs/HOANAM/Build/v4.0/BuildService.asmx [method: POST]
    User Agent: Team Foundation (devenv.exe, 15.112.26410.0, Other, SKU:59)
    Headers: not available
    Path: /tfs/HOANAM/Build/v4.0/BuildService.asmx
    Local Request: True
    Host Address: fe80::d173:b6d1:9535:2177%13
    User: SERVER\Administrator [authentication type: NTLM]

Exception Message: The file exists.
 (type IOException)
Exception Stack Trace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Path.InternalGetTempFileName(Boolean checkHost)
   at Microsoft.TeamFoundation.Build.Server.ProcessTemplate.UpdateCachedProcessParameters(IVssRequestContext requestContext, VersionSpec versionSpec)
   at Microsoft.TeamFoundation.Build.Server.TeamFoundationBuildService.AddProcessTemplates(IVssRequestContext requestContext, IList`1 processTemplates)
   at Microsoft.TeamFoundation.Build.Server.TeamFoundationBuildService.CreateBuiltInProcessTemplates(IVssRequestContext requestContext, String teamProjectUri, Boolean isUpgrade)
   at Microsoft.TeamFoundation.Build.Server.TeamFoundationBuildService.CreateTeamProject(IVssRequestContext requestContext, String projectUri, IList`1 permissions)
   at Microsoft.TeamFoundation.Build.Server.BuildWebService4.CreateTeamProjectComponents(String projectUri, List`1 permissions)

我可以http://server:8888/tfs/HOANAM/Build/v4.0/BuildService.asmxhttp://server:8888/tfs/罚款。此外,我试图删除C:\ Users \ Administrator \ AppData \ Local \ Microsoft \ Team Foundation

中的所有文件

1 个答案:

答案 0 :(得分:0)

似乎您在计算机上安装了多个TFS实例,或者从另一个TFS实例中保留了数据库。清理这些应该有所帮助。