PostSapJobs.AmendOrderToSap

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

var postSapJobs = Activate<PostSapJobs>();
postSapJobs.AmendOrderToSap(1932637, 3, "Amendment");

Properties

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

State

7/21/2026 5:35:56 AM (+2.097s) 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 42.830s Processing

Server:
ooptest:10100
Worker:
48c6c7a2

+5m 12.590s Enqueued

Triggered by DelayedJobScheduler

+23ms Scheduled

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

Enqueue at:
7/21/2026 5:44:24 AM

+3.177s 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\Source\Git\OOP\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\Source\Git\OOP\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)

+173ms Processing

Server:
nsho02swlap19:9700
Worker:
912ec449

+8m 50.320s Enqueued

Triggered by DelayedJobScheduler

+174ms Scheduled

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

Enqueue at:
7/21/2026 5:33:30 AM

+2.216s 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 42.833s Processing

Server:
ooptest:10100
Worker:
a24a51ec

+20ms Enqueued

7/21/2026 5:39:11 AM Created