2017-04-22 161 views
1

我在本地PC上安裝了Visual Studio 2017社區和Team Foundation Server 2017。一切順利,但我無法創建第一個項目。TF400898:發生內部錯誤

--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中的所有文件。

+0

如果您通過網絡訪問創建團隊項目,結果如何? (轉到tfs管理頁面([url]/tfs/_admin)>選擇一個集合>點擊創建一個新的團隊項目) –

回答

0

似乎您在計算機上安裝了多個TFS實例,或者數據庫從另一個TFS實例。清理這些應該會有幫助。

+0

我卸載了所有sql server和tfs實例,清除註冊表,緩存,文件夾,重新啓動,但仍無法創建新項目。這麼奇怪。 –

+0

在哪一步你有錯誤?它是否在VS或TFS網絡界面? – Eduard

+0

我是從Visual Studio /團隊資源管理器/新團隊項目中完成的。無論如何,我放棄了TFS,現在我使用Bonobo作爲Git Server,非常容易安裝並且與VS一起使用。謝謝你的幫助。 –

相關問題