【问题标题】:"The underlying connection was closed" with SDL Tridion 2011 SP1 Template Builder使用 SDL Tridion 2011 SP1 模板生成器“基础连接已关闭”
【发布时间】:2012-07-26 14:00:53
【问题描述】:

从安装在 64 位 Windows 7 笔记本电脑上的 Template Builder (TB) 连接到 CMS 时,我们偶尔会收到以下错误:

The underlying connection was closed: An unexpected error occurred on a receive.
   at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Tridion.ContentManager.Templating.CompoundTemplates.DomainModel.Model.Login(Uri contentManager, NetworkCredential credentials)
   at Tridion.ContentManager.UI.CompoundTemplateDesigner.DesignerForm.LogonAs(Uri uri, Exception initialError)

此错误似乎仅在从客户端计算机访问时发生,而从安装在 CMS 服务器本身上的 TB 连接时似乎从未发生。这似乎也不是特定于 CMS 服务器,因为在连接到其他环境和其他客户端安装时也会间歇性地发生错误。我已尝试重新安装 TB,但问题仍然存在。

有没有其他人遇到过类似的问题,或者对可能导致错误的原因有什么建议?

【问题讨论】:

  • 运行模板时会发生这种情况吗?或者在加载/保存模板时?一旦你在机器上安装了这个,它会继续发生吗?或者如果您再试一次,模板是否可以正常运行/加载/保存?
  • 配置了任何代理?由于我工作的公司使用的代理,我遇到了类似的连接问题。
  • 连接时有时会发生,有时运行时会发生。不涉及代理 - 虽然有时是 VPN - 它发生时没有真正的模式:(
  • 我询问 Run vs Load/Save 的原因是,每个运行模板的 Template Builder 实例都会生成一个 TcmTemplateDebugHost.exe 进程。如果该进程终止,它将重新生成,但是当该进程消失时,我偶尔会看到一条错误消息。不过,第二次运行 (F5) 通常可以正常工作。

标签: tridion tridion-2011


【解决方案1】:

如果托管模板 Web 服务的 CM 服务器上打开的连接过多,就会发生这种情况。

尝试重新启动服务器。如果仍然继续在模板网络服务中添加以下配置:

<httpRuntime executionTimeout="3600" maxRequestLength="102375" ></httpRuntime>

这将使../Tridion/Templating/web.config 中的文件看起来如下所示:

<configuration>
  <tridionConfigSections>
    <sections>
      <clear />
      <add filePath="..\config\Tridion.ContentManager.config" />
    </sections>
  </tridionConfigSections>
  <system.web>
    <httpRuntime executionTimeout="3600" maxRequestLength="1023750"/>
    <authentication mode="Windows" />
    <authorization>
      <allow users="*" />
      <deny users="*" />
    </authorization>
    <identity impersonate="false" />
  </system.web>
  <appSettings>
    <add key="cmeWebRoot" value="WebUI" />
  </appSettings>
</configuration>

【讨论】:

  • 感谢@Bappi,这有帮助 - 我认为 maxRequestLength 可能也存在一些问题,因为我们有大量的出版物。我已将更新后的 web.cofig 添加到您的答案中
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-06-16
  • 1970-01-01
相关资源
最近更新 更多