升级到TFS 2015后出现TF400898错误

时间:2015-08-18 05:04:56

标签: tfs upgrade tfs2015

将TFS Express 2013升级到2015后,我收到以下错误:

1)尝试访问tfs管理页面时

TF400898: An Internal Error Occurred.

2)在事件日志中:

Web Request Details
    Url: http://tfs.XXXXXX.com:8080/tfs/defaultcollection/Services/v3.0/LocationService.asmx [method: POST]
    User Agent: Team Foundation (devenv.exe, 14.0.23102.0, Pro, SKU:31)
    Headers: not available
    Path: /tfs/defaultcollection/Services/v3.0/LocationService.asmx
    Local Request: False
    Host Address: 76.XXX.XXX.115
    User: RR2014\sweaver [authentication type: NTLM]

Exception Message: The extension '.svc' is not registered with WCF/WF handler. Please either remove relativeAddress '~/ServiceManagement.svc' in 'system.serviceModel/serviceHostingEnvironment/serviceActivations' from configuration file or register the corresponding extension '.svc' with WCF/WF handler. Please refer to 'http://msdn.microsoft.com/en-us/library/bb515343.aspx' for how to register an extension in IIS. (type ConfigurationErrorsException)
Exception Stack Trace:    at System.ServiceModel.ServiceHostingEnvironment.HostingManager.NormalizedRelativeAddress(String relativeAddress)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.LoadConfigParameters()
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager..ctor()
   at System.ServiceModel.ServiceHostingEnvironment.EnsureInitialized()
   at System.ServiceModel.ServiceHostingEnvironment.OnEnsureInitialized(Object state)
   at System.ServiceModel.AspNetPartialTrustHelpers.PartialTrustInvoke(ContextCallback callback, Object state)
   at System.ServiceModel.ServiceHostingEnvironment.SafeEnsureInitialized()
   at System.ServiceModel.Activation.ServiceHttpModule.BeginProcessRequest(Object sender, EventArgs e, AsyncCallback cb, Object extraData)
   at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

3)在Visual Studio 2015中尝试连接时:

CData elements not valid at top level of an XML document. Line 1, position 3.

enter image description here

我该如何解决?

1 个答案:

答案 0 :(得分:4)

我能找到的与此问题相关的唯一资源是MSDN forums post

  

我怀疑您曾尝试安装Windows Server AppFabric,但有   没有配置它。如果您不使用Windows Server AppFabric,那么   应该卸载/取消配置它。

这条评论很有启发性,但因为我真的依赖AppFabric而有点吓人!!!

我只是使用缓存功能,结果发现AppFabric有一个截取请求的整个Service Management Service - 或something to that effect。我没有使用它。

因此,我只能卸载托管组件来解决问题。

  • 开始> Programs and Features
  • 选择AppFabric 1.1 for Windows Server,然后点击Change
  • 取消选择Hosting Services

enter image description here

  • 继续Next删除此组件。

  • 您现在应该能够在不与AppFabric冲突的情况下运行TFS。

如果您实际使用的是Hosting Services,那么您可能比我对它的工作方式了解得多,所以我希望您可以从那里开始诊断问题。原始错误消息应该给出一些指示。