2017-04-07 10:26:47,639 ERROR AbleCommerce An error has occured at https://www.timneytriggers.com/shop/Pay ... Action=SET
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> PayPal.Exception.ConnectionException: Invalid HTTP response The underlying connection was closed: An unexpected error occurred on a receive.
at PayPal.HttpConnection.Execute(String payLoad, HttpWebRequest httpRequest)
at PayPal.APIService.MakeRequestUsing(IAPICallPreHandler apiCallHandler)
at PayPal.BasePayPalService.Call(IAPICallPreHandler apiCallHandler)
at PayPal.PayPalAPIInterfaceService.PayPalAPIInterfaceServiceService.SetExpressCheckout(SetExpressCheckoutReq setExpressCheckoutReq, String apiUserName)
at CommerceBuilder.Payments.Providers.PayPal.PayPalProvider.SetExpressCheckout(Boolean isPayPalCreditRequest)
at AbleCommerce.PayPalExpressCheckout.SetExpressCheckout(Boolean isBmlRequest)
at AbleCommerce.PayPalExpressCheckout.Page_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The original site had .net framework targeting 4.0, which I changed to 4.5 during the upgrade. I then switched it back to 4.0 when I saw this was broken. I also tried adding this to the Global.asax:
Also, the upgrade wiped out much of the settings, so we had to re-enter credentials for gateways and such.
Code: Select all
System.Net.ServicePointManager.SecurityProtocol = (System.Net.SecurityProtocolType)3072;
EDIT: At first we were using this endpoint -> https://www.paypal.com/cgi-bin/webscr, then I switched to -> https://api-3t.paypal.com/nvp -- Same error on either endpoint.
Thanks in advance!