从2008年从tfs的肚子升级到2010年后尝试构建时出错

从2008年从tfs的肚子升级到2010年后尝试构建时出错

本文介绍了从2008年从tfs的肚子升级到2010年后尝试构建时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 限时删除!! 嗨。 我正在研究如何在我们完成真实交易之前从TFS 2008升级到TFS 2010. 我之前已经安装了tfs 2010并将我们的数据库升级到2010,并且在我们升级为真实之前发现了一些我们希望在代码中处理的问题。 在我对我们的实时服务器进行了一些新备份并将它们转移到测试服务器后,问题就出现了。 1。我卸载了TFS 2010,删除了已经运行的数据库。 2。恢复了我们的新备份 3。在同一台服务器上安装TFS 2010 如上次(仅卸载TFS 2010,相同的窗口等)。 4。将数据库升级到2010 5。再次配置Team Build。 每件事似乎都有效,安装或配置没有错误。 但是当我尝试构建任何项目时会收到这些错误。 uild:14-01-2011 10:42:05。 $ 项目"C:\Builds\3 \\ \\Firm Enterprise\Cont FirmEnt\BuildType \TFSBuild.proj"在节点1上(EndToEndIteration target(s))。 $ InitializeBuildProperties:   GetBuildProperties TeamFoundationServerUrl =" http:// localhost:8080 / tfs / DefaultCollection " BuildUri =" vstfs:/// Build / Build / 19777" InitializeEndToEndIteration:   UpdateBuildNumberDropLocation TeamFoundationServerUrl =" http:// localhost:8080 / tfs / DefaultCollection " BuildUri = QUOT; vstfs:///构建/建立/ 19777" BuildNumber =" Cont FirmEnt_20110114.1" DropLocation =" \\tfs03\drop\Cont\ContFirmEnt\Cont FirmEnt_20110114.1" b CoreInitializeWorkspace:   CreateWorkspaceTask TeamFoundationServerUrl =" http:// localhost:8080 / tfs / DefaultCollection " BuildUri = QUOT; vstfs:///构建/建立/ 19777" Name =" Cont FirmEnt" BuildDirectory =" C:\Builds\3\Firm Enterprise\Cont FirmEnt" SourcesDirectory =" C:\Builds\3\Firm Enterprise\Cont FirmEnt \Sources" Comment =" Team Build创建的工作区" InitializeBuild:  创建目录"C:\Builds \\\\Firm Enterprise \Cont FirmEnt \Sources"。   md"C:\Builds\3\Firm Enterprise\Cont FirmEnt \Sources" CoreGet:  获取TeamFoundationServerUrl =" http:// localhost:8080 / tfs / DefaultCollection " BuildUri = QUOT; vstfs:///构建/建立/ 19777" AllowUnmapped = True AutoMerge = True BuildDirectory =" C:\Builds\3\Firm Enterprise\Cont FirmEnt" Force = False NoCIOption = True Overwrite = False PopulateOutput = False Preview = False Recursive = True Version =" C24153" Workspace =" Cont FirmEnt" C:\Program Files(x86)\ MSBuild \ Microsoft &\\VisualStudio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5,861, 5):错误:尝试方法'Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo + TfUndoCore.RunCommand(Microsoft.TeamFoundation.Build.Workflow.Activities.VersionControlScope, Microsoft.TeamFoundation.VersionControl.Client.Workspace ,System.String,System.String)'访问方法'Microsoft.TeamFoundation.VersionControl.Client.Workspace.Undo(Microsoft.TeamFoundation.VersionControl.Client.ItemSpec [],Boolean,Boolean,System.String [])'失败了。 [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ Visual Studio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:"获取"任务意外失败。 [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ VisualStudio \TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:System.MethodAccessException:尝试方法'Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo + TfUndoCore.RunCommand(Microsoft.TeamFoundation) .Build.Workflow.Activities.VersionControlScope, Microsoft.TeamFoundation.VersionControl.Client.Workspace,System.String,System.String)'访问方法'Microsoft.TeamFoundation.VersionControl.Client.Workspace.Undo(Microsoft。 TeamFoundation.VersionControl.Client.ItemSpec [],Boolean,Boolean,System.String [])'失败。 [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ VisualStudio \TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ VisualStudio \TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:服务器堆栈跟踪:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ Visual Studio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:   在Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo.TfUndoCore.RunCommand(VersionControlScope versionControlScope,工作空间工作空间,字符串获取,字符串nonFatalError)[C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \ VisualStudio \TeamBuild\Microsoft.TeamFoundation.Build.targets(861, 5):错误MSB4018:    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md,Object [] args,Object server, Int32 methodPtr,Boolean fExecuteInContext,Object []& outArgs)[C:\Builds\3 \ Firm Enterprise \Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild \ Microros\VisualStudio \TeamBuild\Microsoft。 TeamFoundation.Build.targets(861,5):错误MSB4018:    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md,Object [] args, Object server,Int32 methodPtr,Boolean fExecuteInContext,Object []& outArgs)[C:\ Build_nt3 \ Firm Enterprise \Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild \ Microros\VisualStudio \TeamBuild\Microsoft。 TeamFoundation.Build.targets(861,5):错误MSB4018:   在System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg,IMessageSink replySink)[C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType \ TFSBuild.proj] C:\Program文件(x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ VisualStudio \TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:在[0]处重新抛出异常:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ Visual Studio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:   在System.Activities.WorkflowApplication.Invoke(活动活动,IDictionary`2输入,WorkflowInstanceExtensionManager 扩展,TimeSpan超时)[C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild .proj] C:\Program Files(x86)\ MSBuild\Microsoft \ VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:    在System.Activities.WorkflowInvoker.Invoke(活动工作流,IDictionary`2输入,TimeSpan超时,WorkflowInstanceExtensionManager 扩展)[C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType \ TFSBuild .proj] C:\Program Files(x86)\ MSBuild\Microsoft \ VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:    在Microsoft.TeamFoundation.Build.Tasks.WorkflowTask.ExecuteInternal()[C:\Builds\3\Firm Enterprise \Cont FirmEnt \BuildType \ TFSBuild.proj] C: \Program Files(x86)\ MSBuild\Microsoft \ VisualStudio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:   在Microsoft.TeamFoundation.Build.Tasks.Task.Execute()[C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType \ TFSBuild.proj] C: \Program Files(x86)\ MSBuild\Microsoft \ VisualStudio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:   在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()[C:\Builds\3\Firm Enterprise \Cont FirmEnt \BuildType \ TFSBuild.proj] C:\Program文件(x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018: &NBSP ; 在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost,TaskLoggingContext taskLoggingContext,TaskHost taskHost,ItemBucket bucket,TaskExecutionMode howToExecuteTask,Boolean& taskResult)[C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj] 完成建设项目" C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj" (EndToEndIteration target(s)) - FAILED。 Build FAILED。 " C:\Builds\3\Firm Enterprise \ Colont FirmEnt \BuildType \ TFSBuild.proj" (EndToEndIteration目标)(1) - > $ (CoreGet目标) - >   C:\Program Files(x86)\ MSBuild\Microsoft\VisualStudio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5,861,5):错误:尝试方法'Microsoft.TeamFoundation.Build。 Workflow.Activities.TfUndo + TfUndoCore.RunCommand(Microsoft.TeamFoundation.Build.Workflow.Activities.VersionControlScope, Microsoft.TeamFoundation.VersionControl.Client.Workspace,System.String,System.String)'访问方法'微软.TeamFoundation.VersionControl.Client.Workspace.Undo(Microsoft.TeamFoundation.VersionControl.Client.ItemSpec [],Boolean,Boolean,System.String [])'失败。 [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType \ TFSBuild.proj]   C:\Program Files(x86)\ MSBuild \ Microros\VisualStudio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:"获取"任务意外失败。 [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ VisualStudio \TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:System.MethodAccessException:尝试方法'Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo + TfUndoCore.RunCommand(Microsoft.TeamFoundation) .Build.Workflow.Activities.VersionControlScope, Microsoft.TeamFoundation.VersionControl.Client.Workspace,System.String,System.String)'访问方法'Microsoft.TeamFoundation.VersionControl.Client.Workspace.Undo(Microsoft。 TeamFoundation.VersionControl.Client.ItemSpec [],Boolean,Boolean,System.String [])'失败。 [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ VisualStudio \TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ VisualStudio \TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:服务器堆栈跟踪:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ Visual Studio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:   在Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo.TfUndoCore.RunCommand(VersionControlScope versionControlScope,工作空间工作空间,字符串获取,字符串nonFatalError)[C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \ VisualStudio \TeamBuild\Microsoft.TeamFoundation.Build.targets(861, 5):错误MSB4018:    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md,Object [] args,Object server, Int32 methodPtr,Boolean fExecuteInContext,Object []& outArgs)[C:\Builds\3 \ Firm Enterprise \Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild \ Microros\VisualStudio \TeamBuild\Microsoft。 TeamFoundation.Build.targets(861,5):错误MSB4018:    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md,Object [] args, Object server,Int32 methodPtr,Boolean fExecuteInContext,Object []& outArgs)[C:\ Build_nt3 \ Firm Enterprise \Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild \ Microros\VisualStudio \TeamBuild\Microsoft。 TeamFoundation.Build.targets(861,5):错误MSB4018:   在System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg,IMessageSink replySink)[C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType \ TFSBuild.proj] C:\Program Files(x86)\ MSBuild\Microsoft\VisualStudio \TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ VisualStudio \TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:在[0]处重新抛出异常:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild.proj] $ C:\Program Files(x86)\ MSBuild\Microsoft \\ \\ Visual Studio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:   在System.Activities.WorkflowApplication.Invoke(活动活动,IDictionary`2输入,WorkflowInstanceExtensionManager 扩展,TimeSpan超时)[C:\Builds\3\Firm Enterprise\Cont FirmEnt \BuildType \ TFSBuild .proj] C:\Program文件(x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:    在System.Activities.WorkflowInvoker.Invoke(活动工作流,IDictionary`2输入,TimeSpan超时,WorkflowInstanceExtensionManager 扩展)[C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType \ TFSBuild .proj] C:\Program文件(x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:    在Microsoft.TeamFoundation.Build.Tasks.WorkflowTask.ExecuteInternal()[C:\Builds\3\Firm Enterprise \Cont FirmEnt \BuildType \ TFSBuild.proj] C: \Program Files(x86)\ MSBuild\Microsoft \ VisualStudio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:   在Microsoft.TeamFoundation.Build.Tasks.Task.Execute()[C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType \ TFSBuild.proj] C: \Program Files(x86)\ MSBuild\Microsoft \ VisualStudio \TeamBuild \ Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018:   在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()[C:\Builds\3\Firm Enterprise \Cont FirmEnt \BuildType \ TFSBuild.proj] C:\Program文件(x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5):错误MSB4018: &NBSP ; 在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost,TaskLoggingContext taskLoggingContext,TaskHost taskHost,ItemBucket bucket,TaskExecutionMode howToExecuteTask,Boolean& taskResult)[C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType \ TFSBuild.proj]     0警告     2错误 时间流逝00:00:03.79 我试图回到已证明有效的第一个备份,但是我仍会遇到同样的错误。 请帮助我,我不希望每次要恢复Live系统的备份时重新安装Windows。 祝你好运, Jens Jens K. Jensen 解决方案 Hi.Im investigating how we will do a TFS upgrade from TFS 2008 to TFS 2010 before we will do the real deal.I have already installed tfs 2010 once before and upgraded our databases to 2010 and found some issues that we wanted to take care of in our code before we will upgrade for real.The issues shows up after I took some new backups of our live server and transfered them to the test server.1. I uninstalled TFS 2010, deleted the databases that was already working.2. Restored our new backups3. Installed TFS 2010, on the same server  as last time (Only TFS 2010 was uninstalled, same windows etc.)4. Upgraded the databases to 20105. Configured Team Build again.Every thing seems to work, no errors in the installation or configuration.But when I try to build any project I'll get these errors.uild started 14-01-2011 10:42:05.Project "C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj" on node 1 (EndToEndIteration target(s)).InitializeBuildProperties:  GetBuildProperties TeamFoundationServerUrl="http://localhost:8080/tfs/DefaultCollection" BuildUri="vstfs:///Build/Build/19777"InitializeEndToEndIteration:  UpdateBuildNumberDropLocation TeamFoundationServerUrl="http://localhost:8080/tfs/DefaultCollection" BuildUri="vstfs:///Build/Build/19777" BuildNumber="Cont FirmEnt_20110114.1" DropLocation="\\tfs03\drop\Cont\ContFirmEnt\Cont FirmEnt_20110114.1"CoreInitializeWorkspace:  CreateWorkspaceTask TeamFoundationServerUrl="http://localhost:8080/tfs/DefaultCollection" BuildUri="vstfs:///Build/Build/19777" Name="Cont FirmEnt" BuildDirectory="C:\Builds\3\Firm Enterprise\Cont FirmEnt" SourcesDirectory="C:\Builds\3\Firm Enterprise\Cont FirmEnt\Sources" Comment="Workspace created by Team Build"InitializeBuild:  Creating directory "C:\Builds\3\Firm Enterprise\Cont FirmEnt\Sources".  md "C:\Builds\3\Firm Enterprise\Cont FirmEnt\Sources"CoreGet:  Get TeamFoundationServerUrl="http://localhost:8080/tfs/DefaultCollection" BuildUri="vstfs:///Build/Build/19777" AllowUnmapped=True AutoMerge=True BuildDirectory="C:\Builds\3\Firm Enterprise\Cont FirmEnt" Force=False NoCIOption=True Overwrite=False PopulateOutput=False Preview=False Recursive=True Version="C24153" Workspace="Cont FirmEnt"C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5,861,5): error : Attempt by method 'Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo+TfUndoCore.RunCommand(Microsoft.TeamFoundation.Build.Workflow.Activities.VersionControlScope, Microsoft.TeamFoundation.VersionControl.Client.Workspace, System.String, System.String)' to access method 'Microsoft.TeamFoundation.VersionControl.Client.Workspace.Undo(Microsoft.TeamFoundation.VersionControl.Client.ItemSpec[], Boolean, Boolean, System.String[])' failed. [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018: The "Get" task failed unexpectedly. [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018: System.MethodAccessException: Attempt by method 'Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo+TfUndoCore.RunCommand(Microsoft.TeamFoundation.Build.Workflow.Activities.VersionControlScope, Microsoft.TeamFoundation.VersionControl.Client.Workspace, System.String, System.String)' to access method 'Microsoft.TeamFoundation.VersionControl.Client.Workspace.Undo(Microsoft.TeamFoundation.VersionControl.Client.ItemSpec[], Boolean, Boolean, System.String[])' failed. [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018: Server stack trace:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo.TfUndoCore.RunCommand(VersionControlScope versionControlScope, Workspace workspace, String getting, String nonFatalError) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018: Exception rethrown at [0]:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at Microsoft.TeamFoundation.Build.Tasks.WorkflowTask.ExecuteInternal() [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at Microsoft.TeamFoundation.Build.Tasks.Task.Execute() [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]Done Building Project "C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj" (EndToEndIteration target(s)) -- FAILED.Build FAILED."C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj" (EndToEndIteration target) (1) ->(CoreGet target) ->  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5,861,5): error : Attempt by method 'Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo+TfUndoCore.RunCommand(Microsoft.TeamFoundation.Build.Workflow.Activities.VersionControlScope, Microsoft.TeamFoundation.VersionControl.Client.Workspace, System.String, System.String)' to access method 'Microsoft.TeamFoundation.VersionControl.Client.Workspace.Undo(Microsoft.TeamFoundation.VersionControl.Client.ItemSpec[], Boolean, Boolean, System.String[])' failed. [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018: The "Get" task failed unexpectedly. [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018: System.MethodAccessException: Attempt by method 'Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo+TfUndoCore.RunCommand(Microsoft.TeamFoundation.Build.Workflow.Activities.VersionControlScope, Microsoft.TeamFoundation.VersionControl.Client.Workspace, System.String, System.String)' to access method 'Microsoft.TeamFoundation.VersionControl.Client.Workspace.Undo(Microsoft.TeamFoundation.VersionControl.Client.ItemSpec[], Boolean, Boolean, System.String[])' failed. [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018: Server stack trace:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at Microsoft.TeamFoundation.Build.Workflow.Activities.TfUndo.TfUndoCore.RunCommand(VersionControlScope versionControlScope, Workspace workspace, String getting, String nonFatalError) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018: Exception rethrown at [0]:  [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at Microsoft.TeamFoundation.Build.Tasks.WorkflowTask.ExecuteInternal() [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at Microsoft.TeamFoundation.Build.Tasks.Task.Execute() [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(861,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) [C:\Builds\3\Firm Enterprise\Cont FirmEnt\BuildType\TFSBuild.proj]    0 Warning(s)    2 Error(s)Time Elapsed 00:00:03.79I have tried to go back to the first backup that already proved it worked, but I'll still get the same errors.Please help me, I don't want to reinstall Windows every time I want to restore a backup of our Live system.Best regards,JensJens K. Jensen 解决方案 这篇关于从2008年从tfs的肚子升级到2010年后尝试构建时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的..
09-08 13:03