PostSapJobs.AmendOrderToSap

// Job ID: #4410051
using OOP.BackgroundJobsManager.Jobs;

var postSapJobs = Activate<PostSapJobs>();
postSapJobs.AmendOrderToSap(1930356, 2, "Amendment");

Properties

CurrentCulture
"en-IN"
CurrentUICulture
"en-GB"
RetryCount
2

State

7/16/2026 8:41:35 AM (+2.030s) Failed

An exception occurred during performance of the job.

System.AggregateException

One or more errors occurred.

System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> 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 192.168.0.6:81
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at OOP.BackgroundTask.Orders.PostOrderToSap.login_api() in D:\OneDrive - ENES TEXTILE MILLS\D-Drive\30.10.2024\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 1189
   at OOP.BackgroundTask.Orders.PostOrderToSap.AmendOrderToSapDivisionWise(Int32 AmendmendID, Int32 AmendmentVersionID, String status) in D:\OneDrive - ENES TEXTILE MILLS\D-Drive\30.10.2024\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 333
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> 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 192.168.0.6:81
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)

-8m 37.720s Processing

Server:
ooptest:6572
Worker:
b8ac10bf

+8m 50.777s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

Retry attempt 2 of 2: One or more errors occurred.

Enqueue at:
7/16/2026 8:46:20 AM

+2.080s Failed

An exception occurred during performance of the job.

System.AggregateException

One or more errors occurred.

System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> 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 192.168.0.6:81
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at OOP.BackgroundTask.Orders.PostOrderToSap.login_api() in D:\OneDrive - ENES TEXTILE MILLS\D-Drive\30.10.2024\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 1189
   at OOP.BackgroundTask.Orders.PostOrderToSap.AmendOrderToSapDivisionWise(Int32 AmendmendID, Int32 AmendmentVersionID, String status) in D:\OneDrive - ENES TEXTILE MILLS\D-Drive\30.10.2024\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 333
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> 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 192.168.0.6:81
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)

-8m 37.700s Processing

Server:
ooptest:6572
Worker:
ceb5c165

+8m 45.046s Enqueued

Triggered by DelayedJobScheduler

+94ms Scheduled

Retry attempt 1 of 2: One or more errors occurred.

Enqueue at:
7/16/2026 8:44:11 AM

+2.186s Failed

An exception occurred during performance of the job.

System.AggregateException

One or more errors occurred.

System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> 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 192.168.0.6:81
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at OOP.BackgroundTask.Orders.PostOrderToSap.login_api() in D:\OneDrive - ENES TEXTILE MILLS\D-Drive\30.10.2024\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 1189
   at OOP.BackgroundTask.Orders.PostOrderToSap.AmendOrderToSapDivisionWise(Int32 AmendmendID, Int32 AmendmentVersionID, String status) in D:\OneDrive - ENES TEXTILE MILLS\D-Drive\30.10.2024\OOP\OOP.BackgroundTask\Orders\PostOrderToSap.cs:line 333
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> 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 192.168.0.6:81
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)

-8m 37.686s Processing

Server:
ooptest:6572
Worker:
ed503e0b

+46ms Enqueued

7/16/2026 8:49:46 AM Created