Authorize.Net Connection Fails to Respond after a period of time

Discussion in 'ASP.NET / ASP.NET Core' started by swapnavarghese, Apr 5, 2011.

  1. I am attempting to use my site to connect to Authorize.Net to process payments and am receiving a time-out error (see below) when attempting to submit the payment to the processor.

    The code works fine on my production server but breaks when moved to the live environment. Does anyone with Authorize.Net expreience recognize this error?

    Error Message:

    Server Error in '/' Application.
    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 64.94.118.84:80
    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: 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 64.94.118.84:80

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [SocketException (0x274c): 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 64.94.118.84:80]
    System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +239
    System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +35
    System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +224

    [WebException: Unable to connect to the remote server]
    System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) +1868405
    System.Net.HttpWebRequest.GetRequestStream() +13
    System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +103
    net.authorize.api.Service.ARBCreateSubscription(MerchantAuthenticationType merchantAuthentication, ARBSubscriptionType subscription) +65
    Authentication_Registration_2.CreateSubscription(String[] creditcard) +64
    Authentication_Registration_2.AuthorizePayment() +1428
    Authentication_Registration_2.paymentregistrationNext_Click(Object sender, EventArgs e) +1240
    System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +111
    System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +79
    System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


    Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209

    Please advice on this

    Regards
    Swapna
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    The error suggest that Authorize.net's API timed out.
     

Share This Page