1

我在 Visual Studio 中为用 C# 编写的 ASP.NET MVC 4 项目的构建设置设置了持续集成。我们在 VisualStudio.com 上使用 TFS2012 进行源代码控制,并将所有工作区设置为服务器。上周事情进展顺利,但今天早上这个错误开始出现:

1 个错误,0 个警告 异常消息:工作区 2_5_Main;Elastic Build (AwesomeInc) 不在此计算机上。如果这台计算机最近被重命名,则可以通过运行“tf workspaces /updateComputerName:oldComputerName”来更新工作区。(类型 NotSupportedException)异常堆栈跟踪:服务器堆栈跟踪:
在 Microsoft.TeamFoundation.VersionControl.Client.Workspace.RequireLocal() 在 Microsoft.TeamFoundation.VersionControl.Client.Workspace.Get(GetRequest[] requests, GetOptions options, GetFilterCallback filterCallback, Object userData, String[] itemAttributeFilters, String[] itemPropertyFilters , Microsoft.TeamFoundation.VersionControl.Client.Workspace.Get(GetRequest[] requests, GetOptions options, GetFilterCallback filterCallback, Object userData, String[] itemAttributeFilters) 在 Microsoft.TeamFoundation.VersionControl.Client .Workspace.Get(GetRequest[] requests, GetOptions options, GetFilterCallback filterCallback, Object userData) at Microsoft.TeamFoundation.VersionControl.Client.Workspace.Get(GetRequest request, GetOptions options,GetFilterCallback filterCallback, Object userData) at Microsoft.TeamFoundation.VersionControl.Client.Workspace.Get(GetRequest request, GetOptions options) at Microsoft.TeamFoundation.Build.Workflow.Activities.TfGet.TfGetCore.RunCommand(VersionControlScope versionControlScope, Workspace workspace, String getting , String nonFatalError, String version, String fileSpec, GetOptions options, RecursionType recursion) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime .Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg,IMessageSink replySink)GetOptions 选项)在 Microsoft.TeamFoundation.Build.Workflow.Activities.TfGet.TfGetCore.RunCommand(VersionControlScope versionControlScope, Workspace workspace, String getting, String nonFatalError, String version, String fileSpec, GetOptions options, RecursionType recursion) at System.Runtime.Remoting .Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)GetOptions 选项)在 Microsoft.TeamFoundation.Build.Workflow.Activities.TfGet.TfGetCore.RunCommand(VersionControlScope versionControlScope, Workspace workspace, String getting, String nonFatalError, String version, String fileSpec, GetOptions options, RecursionType recursion) at System.Runtime.Remoting .Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

在 [0] 处重新抛出异常:在 System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData) 在 System.Func 9.EndInvoke(IAsyncResult result) at Microsoft.TeamFoundation.Build.Workflow.Activities.TfGet.TfGetCore.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity1的 System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase) .System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

没有人重命名任何计算机,如果我理解正确,我认为它指的是服务器名称?

关于如何解决这个问题的任何想法?

4

0 回答 0