【问题标题】:TDS timed out getting sitecore itemsTDS 获取站点核心项目超时
【发布时间】:2015-03-16 01:02:41
【问题描述】:

我继承了一个 Sitecore 项目并尝试将 TDS [获取 Sitecore 项目] 与一个新的 TDS 项目一起使用,但是我遇到了以下错误。在错误提示之前收到警告是毫无价值的

旧连接器

---------------------------
Hedgehog Development TDS
---------------------------
Warning: The version of the sitecore connector is from an older version of TDS.

Click OK to install the latest version of the connector.

但是,我什至手动删除了 Sitecore 连接器,所以我不确定它为什么也检测到旧版本。

获取 Sitecore 项目错误

---------------------------
Hedgehog Development TDS
---------------------------
Error The request channel timed out while waiting for a reply after 00:01:59.9912110. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.(TimeoutException) getting sitecore items.

Server stack trace: 
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   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.CheckAccessGuid(CheckAccessGuidRequest request)
   at HedgehogDevelopment.SitecoreProject.VSIP.SitecoreConnector.TdsServiceSoapClient.HedgehogDevelopment.SitecoreProject.VSIP.SitecoreConnector.TdsServiceSoap.CheckAccessGuid(CheckAccessGuidRequest request)
   at HedgehogDevelopment.SitecoreProject.VSIP.SitecoreConnector.TdsServiceSoapClient.CheckAccessGuid(String accessGuid)
   at HedgehogDevelopment.SitecoreProject.VSIP.Utils.Support.GetTdsServiceSoapClient(SitecoreProjectNode project, Boolean checkVersion)
   at HedgehogDevelopment.SitecoreProject.VSIP.Dialogs.GetSitecoreItems.LoadSitecoreItemsIntoTree(TreeNodeCollection nodes, String sitecoreBrowsePath, SitecoreItemNode node, Boolean isRoot, Boolean getAllChildren)
   at HedgehogDevelopment.SitecoreProject.VSIP.Dialogs.GetSitecoreItems.GetSitecoreItems_Load(Object sender, EventArgs e)

虽然我认为错误消息说 1:59 分钟,但错误是即时的,并且在重试时会改变几个 MS。

【问题讨论】:

    标签: sitecore tds


    【解决方案1】:

    TDS 插件通过 WCF 与 Sitecore 通信。您可以在以下位置摆弄绑定配置:

    Visual Studio 2010

    “HedgehogDevelopment.SitecoreProject.VSIP.dll.config”和“HedgehogDevelopment.SitecoreProject.VSIP2010.dll.config”都位于“C:\Program Files (x86)\Hedgehog Development\Team Development for Sitecore (VS2010)”下

    Visual Studio 2012

    “HedgehogDevelopment.SitecoreProject.VSIP.dll.config”和“HedgehogDevelopment.SitecoreProject.VSIP2012.dll.config”都位于“C:\Program Files (x86)\Hedgehog Development\Team Development for Sitecore (VS2012)”下

    我将所有四个配置文件保持同步,将所有与超时相关的值更改为 30 分钟,将所有与大小相关的值更改为“2147483647”(最大值)。

    保存以上文件后记得重启Visual Studio。

    【讨论】:

    • 我将超时时间提高到 35 分钟并重新启动了 VS12。错误从after 00:01:59.9912110 更改为after 00:34:59.6713121
    • 尝试使用 fiddler 看看 TDS 正在尝试做什么,可以引导您朝着正确的方向前进。或者添加您自己的实现,将服务包装在 /_DEV/TdsService.asmx 中,并附加一个调试器以查看发生了什么。
    【解决方案2】:

    您可以浏览到 Sitecore 用户界面吗?我之前在 TDS 无法与 Sitecore 通信时看到过此错误。

    在我们的例子中,问题在于该站点的应用程序池使用的是 2.0 框架而不是 4.0 框架。

    【讨论】:

    • 原来我使用的 URL 与我期望的主机名不匹配。我有多个绑定,一个用于网站,另一个用于默认 Sitecore 站点。
    • 原来是 TDS 项目上的项目 URL?
    【解决方案3】:

    无论我更新了多少次连接器,“旧连接器”消息似乎总是会出现。我相当肯定这只是 IDE 插件中的一个错误,它在 Visual Studio 打开后第一次同步时需要让自己知道插件是最新的。我没有这方面的具体数据,但在初始同步后,它会停止向我发出有关连接器的警告。

    关于超时,您可能需要验证 TDS 项目配置是否映射到您的环境(项目 URL、路径、数据库连接字符串)。

    【讨论】:

    • 我已经仔细检查了我的设置,它们都是正确的。由于超时错误,我也无法同步。
    【解决方案4】:

    如果您的应用程序设置正确,则此异常是因为您的 SQL Server 服务未启动。

    【讨论】:

      【解决方案5】:

      我遇到了同样的问题。对我来说,这是与数据库的连接问题。检查您的 TDS 连接设置:)。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-10-13
        • 1970-01-01
        相关资源
        最近更新 更多