Sitecore TDS找不到站点上下文

Sitecore TDS找不到站点上下文,sitecore,sitecore8,tds,Sitecore,Sitecore8,Tds,我已经在Sitecore中使用TDS有一段时间了,但是我的一个站点在尝试同步时刚刚开始出现“找不到站点上下文”的错误。有人知道这是什么原因吗 该站点是Sitecore 8,使用的TDS im版本是Visual Studio 2015的5.5 堆栈跟踪如下所示: Connection Test Pass: TDS service files are correctly installed. Connection Test Message: Connector version local 5.5.0

我已经在Sitecore中使用TDS有一段时间了,但是我的一个站点在尝试同步时刚刚开始出现“找不到站点上下文”的错误。有人知道这是什么原因吗

该站点是Sitecore 8,使用的TDS im版本是Visual Studio 2015的5.5

堆栈跟踪如下所示:

Connection Test Pass: TDS service files are correctly installed.
Connection Test Message: Connector version local 5.5.0.19 and remote 5.5.0.19
Connection Test Pass: Access Guid check passed.
Found database master in the target Sitecore instance.
Connection Test Failure: Failed to complete test.
Exception System.Web.Services.Protocols.SoapException: Can not find site context. ---> System.InvalidOperationException: Can not find site context.
   at HedgehogDevelopment.SitecoreProject.Service.LanguageFallbackDisabler..ctor()
   at HedgehogDevelopment.SitecoreProject.Service.TDSExecutionContext.Wrap[​](Func`1 func)
   at HedgehogDevelopment.SitecoreProject.Service.TdsService.GetItem(String key, String sitecoreDatabase, String accessGuid, String itemIdOrPath)
   --- End of inner exception stack trace ---
   at HedgehogDevelopment.SitecoreProject.Service.TdsService.GetItem(String key, String sitecoreDatabase, String accessGuid, String itemIdOrPath) (FaultException):

Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at HedgehogDevelopment.SitecoreProject.VSIP.SitecoreConnector.TdsServiceSoap.GetItem(GetItemRequest request)
   at HedgehogDevelopment.SitecoreProject.VSIP.SitecoreConnector.TdsServiceSoapClient.HedgehogDevelopment.SitecoreProject.VSIP.SitecoreConnector.TdsServiceSoap.GetItem(GetItemRequest request)
   at HedgehogDevelopment.SitecoreProject.VSIP.SitecoreConnector.TdsServiceSoapClient.GetItem(String key, String sitecoreDatabase, String accessGuid, String itemIdOrPath)
   at HedgehogDevelopment.SitecoreProject.VSIP.ProjectTests.ConnectionTest.<>c__DisplayClass1.<Execute>b__0(String key)
   at HedgehogDevelopment.SitecoreProject.VSIP.Utils.Support.CallServiceWrapper[T](TdsServiceSoapClient client, SitecoreProjectNode project, Func`2 clientCall)
   at HedgehogDevelopment.SitecoreProject.VSIP.ProjectTests.ConnectionTest.Execute()
   at HedgehogDevelopment.SitecoreProject.VSIP.Dialogs.BuildTestDialog.RunTests()
Connection Test Finish: 2016-09-16 02:30:51
连接测试通过:正确安装了TDS服务文件。
连接测试消息:连接器版本本地5.5.0.19和远程5.5.0.19
连接测试通过:访问Guid检查通过。
在目标Sitecore实例中找到数据库主机。
连接测试失败:未能完成测试。
异常System.Web.Services.Protocols.SoapException:找不到网站上下文。-->System.InvalidOperationException:找不到站点上下文。
在HedgehogDevelopment.SitecoreProject.Service.LanguageFallbackDisabler..ctor()上
在HedgehogDevelopment.SitecoreProject.Service.TDSExecutionContext.Wrap[​](Func`1 Func)
在HedgehogDevelopment.SitecoreProject.Service.TdsService.GetItem(字符串键、字符串sitecoreDatabase、字符串accessGuid、字符串itemIdOrPath)
---内部异常堆栈跟踪的结束---
在HedgehogDevelopment.SitecoreProject.Service.TdsService.GetItem(字符串键、字符串sitecoreDatabase、字符串accessGuid、字符串itemIdOrPath)(FaultException):
服务器堆栈跟踪:
位于System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime操作,ProxyRpc&rpc)
在System.ServiceModel.Channels.ServiceChannel.Call(字符串操作、布尔单向、ProxyOperationRuntime操作、对象[]输入、对象[]输出、时间跨度超时)
位于System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage方法调用,ProxyOperationRuntime操作)
位于System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage消息)
在[0]处重试异常:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)
at System.Runtime.Remoting.proxy.RealProxy.PrivateInvoke(MessageData&msgData,Int32类型)
在HedgehogDevelopment.SitecoreProject.VSIP.SitecoreConnector.TdsServiceSoap.GetItem(GetItemRequest请求)中
位于HedgehogDevelopment.SitecoreProject.VSIP.SitecoreConnector.TdsServiceSoapClient.HedgehogDevelopment.SitecoreProject.VSIP.SitecoreConnector.TdsServiceSoap.GetItem(GetItemRequest请求)
在HedgehogDevelopment.SitecoreProject.VSIP.SitecoreConnector.TdsServiceSoapClient.GetItem(字符串键、字符串sitecoreDatabase、字符串accessGuid、字符串itemIdOrPath)
在HedgehogDevelopment.SitecoreProject.VSIP.ProjectTests.ConnectionTest.c__DisplayClass1.b_u 0(字符串键)
在HedgehogDevelopment.SitecoreProject.VSIP.Utils.Support.CallServiceWrapper[T](TdsServiceSoapClient客户端,SitecoreProjectNode项目,Func`2客户端调用)
在HedgehogDevelopment.SitecoreProject.VSIP.ProjectTests.ConnectionTest.Execute()中
在HedgehogDevelopment.SitecoreProject.VSIP.Dialogs.BuildTestDialog.RunTests()中
连接测试完成时间:2016-09-16 02:30:51

请执行下列步骤检查连接

  • 在web浏览器中导航到Sitecore实例,并检查 站点可用
  • 确保没有防火墙阻止对Sitecore的访问 例如
  • 导航到磁盘上包含Sitecore实例的文件夹 并检查文件夹\u DEV是否存在
  • 检查\u DEV文件夹是否包含文件TdsService.asmx,以及 web.config
  • 检查Sitecore实例的bin文件夹是否包含该文件 刺猬开发.SitecoreProject.Service.dll

.

此问题是由于添加到IgnoreUrlPrefix设置的TDS服务路径造成的。

对我来说,这是由于使用了错误版本的TDS造成的。我安装了5.5.0.15,但我需要的(以及为此客户端创建的所有TDS内容)是5.1.0.17


安装正确的版本解决了问题。

网站运行正常吗?Sitecore日志中是否有任何异常?网站正在运行,Sitecore日志中没有异常测试了所有这些内容,它们都在那里。尝试删除它们,然后单击“测试”按钮再次安装,但仍然可以获得同样的错误。你找到这个问题的根源了吗?我也有同样的问题…上面所有的设置都正确,并且测试通过了除最后一个(与Sitecore的测试连接)之外的所有内容。这个设置在哪里?在Sitecore.config中?这不是我的问题….:*(Sitecore 8上的Web.config)