Sitecore TDS 找不到站点上下文
Sitecore TDS Can not find site context
我将 TDS 与 Sitecore 一起使用已有一段时间,但我的一个站点在尝试同步时刚刚开始出现 "Can not find site context" 错误。有人知道是什么原因造成的吗?
该站点是 Sitecore 8,我使用的 TDS 版本是 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
请执行下面提到的步骤来检查连接。
- 在网络浏览器中导航到 Sitecore 实例并检查
网站可用.
- 确保没有防火墙阻止对 Sitecore 的访问
实例.
- 导航到磁盘上包含 Sitecore 实例的文件夹
并检查文件夹 _DEV 是否存在。
- 检查 _DEV 文件夹是否包含文件 TdsService.asmx 和
web.config.
- 检查 Sitecore 实例的 bin 文件夹是否包含该文件
HedgehogDevelopment.SitecoreProject.Service.dll.
.
此问题是由添加到 IgnoreUrlPrefix 设置的 TDS 服务路径引起的。
对我来说,这是由于使用了错误的 TDS 版本造成的。我安装了 5.5.0.15,但我需要的(以及为此客户端创建的所有 TDS 内容)是 5.1.0.17
安装正确的版本解决了问题。
我将 TDS 与 Sitecore 一起使用已有一段时间,但我的一个站点在尝试同步时刚刚开始出现 "Can not find site context" 错误。有人知道是什么原因造成的吗?
该站点是 Sitecore 8,我使用的 TDS 版本是 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
请执行下面提到的步骤来检查连接。
- 在网络浏览器中导航到 Sitecore 实例并检查 网站可用.
- 确保没有防火墙阻止对 Sitecore 的访问 实例.
- 导航到磁盘上包含 Sitecore 实例的文件夹 并检查文件夹 _DEV 是否存在。
- 检查 _DEV 文件夹是否包含文件 TdsService.asmx 和 web.config.
- 检查 Sitecore 实例的 bin 文件夹是否包含该文件 HedgehogDevelopment.SitecoreProject.Service.dll.
.
此问题是由添加到 IgnoreUrlPrefix 设置的 TDS 服务路径引起的。
对我来说,这是由于使用了错误的 TDS 版本造成的。我安装了 5.5.0.15,但我需要的(以及为此客户端创建的所有 TDS 内容)是 5.1.0.17
安装正确的版本解决了问题。