升级到TFS 2015后出现TF400898错误

7

在将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.

在此输入图片描述

如何修复它?

1个回答

4
我能找到的与此问题相关的唯一资源是MSDN论坛帖子

我怀疑你尝试安装了Windows Server AppFabric,但没有进行配置。如果你不使用Windows Server AppFabric,应该卸载/取消配置它。

这条评论很有启发性,但有点可怕,因为我实际上依赖于AppFabric!!!
然而,我只使用缓存功能,结果发现AppFabric有一个拦截请求的整个Service Management Service类似的东西。我没有使用那个。
因此,我只需卸载托管组件即可解决问题。
  • 打开开始菜单 > 程序和功能
  • 选择 Windows Server 的 AppFabric 1.1 并点击 更改
  • 取消选中 托管服务

enter image description here

  • 继续点击 下一步 来移除此组件。

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

如果您实际上正在使用 Hosting Services,那么您可能已经比我更了解它的工作原理,因此希望您可以从中诊断问题。原始错误消息应该提供一些方向。


1
哇,你救了星期五下午。 - granadaCoder

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接