<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SocketException when calling getHostedPaymentPageRequest using example code in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SocketException-when-calling-getHostedPaymentPageRequest-using/m-p/66447#M39983</link>
    <description>&lt;P&gt;&lt;U&gt;I am seeing this error when running sample code on server A:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempting to connect to Authorize.NET sandbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error Message&lt;/STRONG&gt;: Error in transaction - System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 23.192.65.17:443 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket&amp;amp; socket, IPAddress&amp;amp; address, ConnectSocketState state, IAsyncResult asyncResult, Exception&amp;amp; exception)&lt;BR /&gt;Unable to connect to the remote server&lt;BR /&gt;at System.Net.HttpWebRequest.GetRequestStream(TransportContext&amp;amp; context) at System.Net.HttpWebRequest.GetRequestStream() at AuthorizeNet.Util.HttpUtility.PostData[TQ,TS](Environment env, TQ request) at AuthorizeNet.Api.Controllers.Bases.ApiOperationBase`2.Execute(Environment environment) at AuthorizeResponse._Default.GetTransactionID(String ApiLoginID, String ApiTransactionKey, Decimal amount) at AuthorizeResponse._Default.Page_Load(Object sender, EventArgs e)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;I AM able to run the same code on Server B with NO connection error.&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample code used:&amp;nbsp;&lt;A href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAuthorizeNet%2Fsample-code-csharp%2Fblob%2Fmaster%2FAcceptSuite%2FGetAnAcceptPaymentPage.cs&amp;amp;data=02%7C01%7CPam.Robertson%40iatric.com%7C95ee8f734ca947a504c108d69363dc7a%7C399290c880014c9da7a663e5bd93a3b0%7C1%7C0%7C636858454467353797&amp;amp;sdata=6r1bApPxbvuI5bDnI8hKN4mgC%2BIXv89bUyza0leAMT0%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://github.com/AuthorizeNet/sample-code-csharp/blob/master/AcceptSuite/GetAnAcceptPaymentPage.cs&lt;/A&gt;&amp;nbsp;with appropriate replacement for ApiLoginID and ApiTransactionKey.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Confirmed using TLS 1.2 and added a new line in sample code to ensure TLS 1.2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;SPAN&gt;Net.ServicePointManager.SecurityProtocol = Net.SecurityProtocolType.Tls12&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2019 19:41:25 GMT</pubDate>
    <dc:creator>probertson75</dc:creator>
    <dc:date>2019-02-15T19:41:25Z</dc:date>
    <item>
      <title>SocketException when calling getHostedPaymentPageRequest using example code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SocketException-when-calling-getHostedPaymentPageRequest-using/m-p/66447#M39983</link>
      <description>&lt;P&gt;&lt;U&gt;I am seeing this error when running sample code on server A:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempting to connect to Authorize.NET sandbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error Message&lt;/STRONG&gt;: Error in transaction - System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 23.192.65.17:443 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket&amp;amp; socket, IPAddress&amp;amp; address, ConnectSocketState state, IAsyncResult asyncResult, Exception&amp;amp; exception)&lt;BR /&gt;Unable to connect to the remote server&lt;BR /&gt;at System.Net.HttpWebRequest.GetRequestStream(TransportContext&amp;amp; context) at System.Net.HttpWebRequest.GetRequestStream() at AuthorizeNet.Util.HttpUtility.PostData[TQ,TS](Environment env, TQ request) at AuthorizeNet.Api.Controllers.Bases.ApiOperationBase`2.Execute(Environment environment) at AuthorizeResponse._Default.GetTransactionID(String ApiLoginID, String ApiTransactionKey, Decimal amount) at AuthorizeResponse._Default.Page_Load(Object sender, EventArgs e)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;I AM able to run the same code on Server B with NO connection error.&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample code used:&amp;nbsp;&lt;A href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAuthorizeNet%2Fsample-code-csharp%2Fblob%2Fmaster%2FAcceptSuite%2FGetAnAcceptPaymentPage.cs&amp;amp;data=02%7C01%7CPam.Robertson%40iatric.com%7C95ee8f734ca947a504c108d69363dc7a%7C399290c880014c9da7a663e5bd93a3b0%7C1%7C0%7C636858454467353797&amp;amp;sdata=6r1bApPxbvuI5bDnI8hKN4mgC%2BIXv89bUyza0leAMT0%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://github.com/AuthorizeNet/sample-code-csharp/blob/master/AcceptSuite/GetAnAcceptPaymentPage.cs&lt;/A&gt;&amp;nbsp;with appropriate replacement for ApiLoginID and ApiTransactionKey.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Confirmed using TLS 1.2 and added a new line in sample code to ensure TLS 1.2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;SPAN&gt;Net.ServicePointManager.SecurityProtocol = Net.SecurityProtocolType.Tls12&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 19:41:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SocketException-when-calling-getHostedPaymentPageRequest-using/m-p/66447#M39983</guid>
      <dc:creator>probertson75</dc:creator>
      <dc:date>2019-02-15T19:41:25Z</dc:date>
    </item>
  </channel>
</rss>

