Question

A sudden issue appeared on one of the environments when publishing/rendering a certain piece of code in Compound Templating. It is an DTAP environment, and the issue is only happening on the Production environment (as always ;-), where there are two CMS machine and two publishers. All showing the same behavior.

The code which causes the problem is:

StructureGroup SG = (StructureGroup)engine.GetObject("/webdav/pub/root/etc/etc...");

The error in the Template builder is:

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) 

What is odd that we are not really trying to get to an external server. At least, that's what it looks like. Maybe I am missing something in how Tridion works. I am fairly certain it is a security issue, but I don't know where to look.

Was it helpful?

Solution

I figured out the problem of the error with the help of Nickoli and Nuno's advice.

This error is shown when the Template Builder is trying to run from a location in a network, which doesn't have access to the code. I thought it was related to the engine.GetObject method, because the error would only appear when that method was run.

There was an error in the code in the end as well, but that had to do with a bad recursive method.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top