在 Compound Templating 中发布/渲染某段代码时,其中一个环境突然出现问题。这是一个 DTAP 环境,问题只发生在生产环境中(一如既往;-),那里有两台 CMS 机器和两个发布者。都表现出相同的行为。
导致问题的代码是:
StructureGroup SG = (StructureGroup)engine.GetObject("/webdav/pub/root/etc/etc...");
模板生成器中的错误是:
System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.77.66.136:80
bij System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
bij System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
bij System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- Einde van intern uitzonderingsstackpad ---
bij System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
bij System.Net.HttpWebRequest.GetRequestStream()
bij System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
bij Tridion.ContentManager.Templating.CompoundTemplates.DomainModel.Proxy.CompoundTemplateWebService.GetDebuggingState(String debuggerSessionId, String lastLogMessageId)
bij Tridion.ContentManager.Templating.CompoundTemplates.DomainModel.DebugObject.Start(Template template, Object debugItem, LoggingOptions loggingOptions)
奇怪的是,我们并没有真正尝试访问外部服务器。至少,它看起来是这样的。也许我在 Tridion 的工作方式上遗漏了一些东西。我相当肯定这是一个安全问题,但我不知道去哪里找。