Error when moving to new machine An existing connection was forcibly closed by the remote host

187 views
Skip to first unread message

Kelly Leavitt

unread,
Jan 27, 2017, 10:27:10 AM1/27/17
to SquishIt
Using squsihit quite successfully on an existing server.

Copying content to a new server and getting a socket error.

An existing connection was forcibly closed by the remote host

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

Source Error:

Line 178:                var debugMode = ValidationHelper.GetBoolean(this.GetValue("DebugMode"), false);
Line 179://				var debugMode = true;
Line 180:                resultHTML = debugMode ? cssBundle.ForceDebug().Render("~/App_Themes/css/combineddebug_#.css") : cssBundle.ForceRelease().Render(outputPath);
Line 181:            }
Line 182:

Source File: d:\inetpub\XXX\CMSWebParts\Wake\Squishit.ascx.cs    Line: 180

Stack Trace:

[SocketException (0x2746): An existing connection was forcibly closed by the remote host]
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +249

[IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.]
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +8442161
   System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) +57
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +243
   System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +470
   System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +8572686
   System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +230
   System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +645
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +9
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +87
   System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +1467
   System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +84
   System.Net.ConnectStream.WriteHeaders(Boolean async) +816

[WebException: The underlying connection was closed: An unexpected error occurred on a send.]
   System.Net.HttpWebRequest.GetResponse() +8442708
   SquishIt.Framework.Resolvers.HttpResolver.ResolveWebResource(String path) in d:\Coding\git\SquishIt\SquishIt.Framework\Resolvers\HttpResolver.cs:26
   SquishIt.Framework.Resolvers.HttpResolver.Resolve(String file) in d:\Coding\git\SquishIt\SquishIt.Framework\Resolvers\HttpResolver.cs:20
   SquishIt.Framework.Files.Input.Resolve(IEnumerable`1 allowedExtensions, IEnumerable`1 disallowedExtensions, String debugFileExtension) in d:\Coding\git\SquishIt\SquishIt.Framework\Files\Input.cs:34
   SquishIt.Framework.Base.BundleBase`1.GetFiles(IEnumerable`1 assets) in d:\Coding\git\SquishIt\SquishIt.Framework\Base\BundleBase.Rendering.Internals.cs:22
   SquishIt.Framework.Base.BundleBase`1.RenderRelease(String key, String renderTo, IRenderer renderer) in d:\Coding\git\SquishIt\SquishIt.Framework\Base\BundleBase.Rendering.Internals.cs:294
   CMSWebParts_Wake_Squishit.SetupControl() in d:\inetpub\XXX\CMSWebParts\Wake\Squishit.ascx.cs:180
   CMSWebParts_Wake_Squishit.OnContentLoaded() in d:\inetpub\XXX\CMSWebParts\Wake\Squishit.ascx.cs:117
   CMS.PortalControls.CMSWebPartZone.OnContentLoaded() +160
   CMS.PortalControls.CMSAbstractLayout.OnContentLoaded() +149
   CMS.PortalControls.CMSAbstractLayout.LoadWebPartsContent(Boolean reloadData) +296
   CMS.PortalControls.CMSAbstractLayout.LoadContent(PageInfo pageInfo, Boolean reloadData, Boolean allowOrphanedZones) +1194
   CMS.PortalControls.CMSPagePlaceholder.LoadContent(PageInfo pageInfo, Boolean reloadData) +1892
   CMS.PortalControls.CMSPortalManager.LoadContent(Boolean reloadData) +2017
   CMS.PortalControls.CMSPortalManager.CMSPortalManager_Init(Object sender, EventArgs e) +495
   System.Web.UI.Control.InitRecursive(Control namingContainer) +186
   System.Web.UI.Control.InitRecursive(Control namingContainer) +291
   System.Web.UI.Control.InitRecursive(Control namingContainer) +291
   System.Web.UI.Control.InitRecursive(Control namingContainer) +291
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2098

Alex Ullrich

unread,
Jan 28, 2017, 7:19:07 AM1/28/17
to SquishIt
What resources are you trying to load over http? Anything IP authenticated, or using untrusted ssl certificates?

You can post the complete code for squishit.ascx, may help but it really looks like a server configuration problem. Could be firewall also, though I'm not sure if that would give you the "forcibly closed" error message.

Reply all
Reply to author
Forward
0 new messages