Running on 9.3... after I click create new account, complete the info and submit the page with all the new account info, I get the error below...


NOTHING has changed software-wise on the server side..



Server Error in '/' Application.

Authentication failed because the remote party has closed the transport stream.

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.IO.IOException: Authentication failed because the remote party has closed the transport stream.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>


2) Add the following section to the configuration file of your application:

       <compilation debug="true"/>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[IOException: Authentication failed because the remote party has closed the transport stream.]
   System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) +7126341
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +277
   System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +7302882
   System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +214
   System.Threading.ExecutionContext.runTryCode(Object userData) +376
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +98
   System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +1131
   System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +88
   System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) +20
   System.Net.ConnectStream.WriteHeaders(Boolean async) +360

[WebException: The underlying connection was closed: An unexpected error occurred on a send.]
   System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) +1003
   System.Net.HttpWebRequest.GetRequestStream() +23
   AspDotNetStorefrontCore.RTShipping.POSTandReceiveData(String Request, String Server) +334
   AspDotNetStorefrontCore.RTShipping.UPSGetRates(Shipments AllShipments, String& RTShipRequest, String& RTShipResponse, Decimal ExtraFee, Decimal MarkupPercent, Decimal ShipmentValue, Decimal ShippingTaxRate) +6002
   AspDotNetStorefrontCore.RTShipping.GetRates(Shipments AllShipments, String Carriers, ResultType ListFormat, String FieldName, String CssClass, Decimal ShippingTaxRate, String& RTShipRequest, String& RTShipResponse, Decimal ExtraFee, Decimal MarkupPercent, Decimal ShipmentValue, CartItemCollection thisCart) +1087
   AspDotNetStorefrontCore.ShoppingCart.GetRates(Address shipmentAddress, Decimal ShippingHandlingExtraFee) +10266
   AspDotNetStorefrontCore.ShippingCalculation.UseRealTimeRatesShippingCalculation.GetShippingMethods(Int32 storeId) +171
   AspDotNetStorefrontCore.ShoppingCart.GetShippingMethods(Address usingThisAddress, Decimal taxRate) +953
   AspDotNetStorefrontCore.ShoppingCart.GetShippingMethods(Address usingThisAddress) +409
   AspDotNetStorefront.checkoutshipping.OnInit(EventArgs e) +140
   System.Web.UI.Control.InitRecursive(Control namingContainer) +143
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1477

Version Information: Microsoft .NET Framework Version:2.0.50727.8762; ASP.NET Version:2.0.50727.8762

in MultiStore by (200 points)
I too have a client on version 9.4.2 that just started experiencing issues at the end of last week. It happens when making a call to request shipping rates. And it looks like the error is generated in the RTShipping module. Has a shipping provider discontinued a an old service? Is there a fix for this issue?

2 Answers

0 votes
The error is happening due to not being able to get a reponse anymore from UPS. Which according to UPS started to require TLS 1.1 or higher on 12/31/2017. To fix this you will need to upgrade your store.
by (5k points)
0 votes
Might try the solution in the post below if you have source before having to go the upgrade route.
by (170 points)