Exception Message - System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:48620
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at GorillExpense.IntegrationApp.DynamicsGPService2013Legacy.DynamicsGP.GetPolicyByOperation(String operation, Context context)
at GorillExpense.IntegrationApp.Classes.GP2013PayablesInvoiceUpload.GPProcessSingleBatch(List`1 exp, List`1 memoFlds, Decimal total_amt)
-----------------------------------------------------------------------------------------------------------------------------------
Solution
1) Make sure the GP 2013 Connection URL is correctly entered on the settings page of the
integration app.
2) If GP URL is setup on the company profile, make sure
you select "Get Company info from Company profile" checkbox on the settings
page. See screenshot below
Save settings page and try again.
If both the above options do not work, please try the solution below-
Login as Admin to the server where GP Web Services are installed and do the following -